trigger cmdline history with c-x
This commit is contained in:
@ -77,10 +77,18 @@ return {
|
|||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
end, {
|
end, { 'i', 's', }),
|
||||||
'i',
|
['<c-x>'] = cmp.mapping(cmp.mapping.complete(
|
||||||
's',
|
{
|
||||||
}),
|
config = {
|
||||||
|
sources = {
|
||||||
|
{
|
||||||
|
name = 'cmdline_history'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
), { 'c' }),
|
||||||
},
|
},
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
@ -150,7 +158,7 @@ return {
|
|||||||
cmp.setup.cmdline(':', {
|
cmp.setup.cmdline(':', {
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'cmdline' },
|
{ name = 'cmdline' },
|
||||||
{ name = 'cmdline_history' },
|
-- { name = 'cmdline_history' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user