diff options
Diffstat (limited to '.config/nvim/lua/plugin_settings.lua')
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index cb27343..0c1c322 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua | |||
@@ -301,17 +301,22 @@ cmp.setup({ | |||
301 | end, | 301 | end, |
302 | }, | 302 | }, |
303 | mapping = { | 303 | mapping = { |
304 | ['<C-d>'] = cmp.mapping.scroll_docs(-4), | 304 | ['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }), |
305 | ['<C-f>'] = cmp.mapping.scroll_docs(4), | 305 | ['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }), |
306 | ['<C-Space>'] = cmp.mapping.complete(), | 306 | ['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }), |
307 | ['<C-e>'] = cmp.mapping.close(), | 307 | ['<C-e>'] = cmp.mapping({ |
308 | i = cmp.mapping.abort(), | ||
309 | c = cmp.mapping.close(), | ||
310 | }), | ||
308 | ['<C-l>'] = cmp.mapping.confirm({ select = true }), | 311 | ['<C-l>'] = cmp.mapping.confirm({ select = true }), |
309 | }, | 312 | }, |
310 | sources = { | 313 | sources = cmp.config.sources({ |
311 | { name = 'nvim_lsp' }, | 314 | { name = 'nvim_lsp' }, |
312 | { name = 'ultisnips' }, | 315 | { name = 'ultisnips' }, |
316 | }, { | ||
313 | { name = 'buffer' }, | 317 | { name = 'buffer' }, |
314 | } | 318 | { name = 'path' }, |
319 | }) | ||
315 | }) | 320 | }) |
316 | 321 | ||
317 | -- }}} nvim-cmp -- | 322 | -- }}} nvim-cmp -- |