trigger cmdline history with c-x

This commit is contained in:
2023-03-19 22:51:35 +01:00
parent 3e49aa40a5
commit ebefdb64ff

View File

@ -77,10 +77,18 @@ return {
else
fallback()
end
end, {
'i',
's',
}),
end, { 'i', 's', }),
['<c-x>'] = cmp.mapping(cmp.mapping.complete(
{
config = {
sources = {
{
name = 'cmdline_history'
}
}
}
}
), { 'c' }),
},
snippet = {
expand = function(args)
@ -150,7 +158,7 @@ return {
cmp.setup.cmdline(':', {
sources = {
{ name = 'cmdline' },
{ name = 'cmdline_history' },
-- { name = 'cmdline_history' },
{ name = 'path' },
{ name = 'buffer' },
},