added cmdline history
This commit is contained in:
parent
3a079ee728
commit
cc2d3b770a
@ -13,6 +13,7 @@ return {
|
|||||||
-- `kind` is not set, so the default value is "Copilot"
|
-- `kind` is not set, so the default value is "Copilot"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'dmitmel/cmp-cmdline-history',
|
||||||
'folke/lazydev.nvim',
|
'folke/lazydev.nvim',
|
||||||
'L3MON4D3/LuaSnip',
|
'L3MON4D3/LuaSnip',
|
||||||
{
|
{
|
||||||
@ -112,6 +113,10 @@ return {
|
|||||||
module = 'blink.compat.source',
|
module = 'blink.compat.source',
|
||||||
async = true
|
async = true
|
||||||
},
|
},
|
||||||
|
cmdline_history = {
|
||||||
|
name = 'cmdline_history',
|
||||||
|
module = 'blink.compat.source',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -121,7 +126,7 @@ return {
|
|||||||
-- Search forward and backward
|
-- Search forward and backward
|
||||||
if type == '/' or type == '?' then return { 'buffer' } end
|
if type == '/' or type == '?' then return { 'buffer' } end
|
||||||
-- Commands
|
-- Commands
|
||||||
if type == ':' or type == '@' then return { 'cmdline', 'buffer' } end
|
if type == ':' or type == '@' then return { 'cmdline', 'buffer', 'cmdline_history' } end
|
||||||
return {}
|
return {}
|
||||||
end,
|
end,
|
||||||
completion = {
|
completion = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user