summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/plugin_settings.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua
index 0c1c322..ccf3827 100644
--- a/.config/nvim/lua/plugin_settings.lua
+++ b/.config/nvim/lua/plugin_settings.lua
@@ -300,16 +300,20 @@ cmp.setup({
300 vim.fn["UltiSnips#Anon"](args.body) 300 vim.fn["UltiSnips#Anon"](args.body)
301 end, 301 end,
302 }, 302 },
303 mapping = { 303 window = {
304 completion = cmp.config.window.bordered(),
305 documentation = cmp.config.window.bordered(),
306 },
307 mapping = cmp.mapping.preset.insert({
304 ['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }), 308 ['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
305 ['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }), 309 ['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }),
306 ['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }), 310 ['<C-c>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
307 ['<C-e>'] = cmp.mapping({ 311 ['<C-e>'] = cmp.mapping({
308 i = cmp.mapping.abort(), 312 i = cmp.mapping.abort(),
309 c = cmp.mapping.close(), 313 c = cmp.mapping.close(),
310 }), 314 }),
311 ['<C-l>'] = cmp.mapping.confirm({ select = true }), 315 ['<C-l>'] = cmp.mapping.confirm({ select = true }),
312 }, 316 }),
313 sources = cmp.config.sources({ 317 sources = cmp.config.sources({
314 { name = 'nvim_lsp' }, 318 { name = 'nvim_lsp' },
315 { name = 'ultisnips' }, 319 { name = 'ultisnips' },