added cmdline history

This commit is contained in:
Oliver Hartmann 2025-03-02 22:34:07 +01:00
parent 3a079ee728
commit cc2d3b770a

View File

@ -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 = {