nvim: fancier completion popups, cancel completion with <End>
This commit is contained in:
parent
7dca6616d5
commit
75ca9848dd
|
@ -19,14 +19,15 @@ packer.use {
|
|||
end,
|
||||
},
|
||||
window = {
|
||||
-- completion = cmp.config.window.bordered(),
|
||||
-- documentation = cmp.config.window.bordered(),
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
['<End>'] = cmp.mapping.abort(),
|
||||
['<CR>'] = cmp.mapping.confirm({ select = false }),
|
||||
['<tab>'] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue
Block a user