summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2022-04-18 00:22:58 +0300
committerYigit Sever2022-04-18 00:22:58 +0300
commit4eff03aa6556ff0f61aa3be9099614a183df40c7 (patch)
tree9c7ced7e10c913155d76cb74e77ed62eca1e1385 /.config
parent8dc583b59be7cac66e4b8aedca809f5c56ddafb5 (diff)
downloaddotfiles-4eff03aa6556ff0f61aa3be9099614a183df40c7.tar.gz
dotfiles-4eff03aa6556ff0f61aa3be9099614a183df40c7.tar.bz2
dotfiles-4eff03aa6556ff0f61aa3be9099614a183df40c7.zip
nvim: update cmp config, we should learn this thing
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' },