summaryrefslogtreecommitdiffstats
path: root/lua/plugins/cmp.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-03-20 22:48:22 +0100
committerNanderty <psopka@sopka.ch>2023-03-20 22:48:22 +0100
commit0cbfb1248476aa278c1567deeb4021e68703d7e2 (patch)
tree723671b27310c9a60e18c9a0f51fcd35dd29cdb5 /lua/plugins/cmp.lua
parent7111388965e01e9c712dfc2288028952fe78b664 (diff)
downloadneovim-config-0cbfb1248476aa278c1567deeb4021e68703d7e2.tar.gz
neovim-config-0cbfb1248476aa278c1567deeb4021e68703d7e2.tar.bz2
neovim-config-0cbfb1248476aa278c1567deeb4021e68703d7e2.zip
lazy.vim fertig
Diffstat (limited to 'lua/plugins/cmp.lua')
-rw-r--r--lua/plugins/cmp.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua
index 6015356..48df829 100644
--- a/lua/plugins/cmp.lua
+++ b/lua/plugins/cmp.lua
@@ -7,7 +7,6 @@ return {
},
config = function()
require('luasnip-latex-snippets').setup()
- require("luasnip.loaders.from_lua").lazy_load()
require("luasnip.loaders.from_vscode").lazy_load()
end
},
@@ -18,6 +17,7 @@ return {
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
+ 'hrsh7th/cmp-calc',
'saadparwaiz1/cmp_luasnip',
},
@@ -48,7 +48,7 @@ return {
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
- cmp.select_next_item()
+ cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
elseif has_words_before() then
@@ -60,7 +60,7 @@ return {
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
- cmp.select_prev_item()
+ cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
luasnip.jump(-1)
else
@@ -73,6 +73,7 @@ return {
{ name = 'luasnip' },
{ name = 'buffer' },
{ name = 'path' },
+ { name = 'calc' },
})
}
end,