diff options
author | Yigit Sever | 2022-04-13 23:13:08 +0300 |
---|---|---|
committer | Yigit Sever | 2022-04-13 23:13:39 +0300 |
commit | f51495d2755be5e231fba62d368751c56bcbfcc2 (patch) | |
tree | 8bf9f5ce70b086aa50c58ca6d88b2a6e94147698 | |
parent | 90023545e4dcb45ffe29d792e192a6e10cace46b (diff) | |
download | dotfiles-f51495d2755be5e231fba62d368751c56bcbfcc2.tar.gz dotfiles-f51495d2755be5e231fba62d368751c56bcbfcc2.tar.bz2 dotfiles-f51495d2755be5e231fba62d368751c56bcbfcc2.zip |
nvim: update nvim_lsp mappings
-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 -- |