diff options
-rw-r--r-- | .config/nvim/lua/plugins/cmp.lua | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 2cd540c..5fdc741 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua | |||
@@ -177,18 +177,9 @@ return { | |||
177 | -- Required to automatically include base snippets, like "c" snippets for "cpp" | 177 | -- Required to automatically include base snippets, like "c" snippets for "cpp" |
178 | load_ft_func = require('luasnip_snippets.common.snip_utils').load_ft_func, | 178 | load_ft_func = require('luasnip_snippets.common.snip_utils').load_ft_func, |
179 | ft_func = require('luasnip_snippets.common.snip_utils').ft_func, | 179 | ft_func = require('luasnip_snippets.common.snip_utils').ft_func, |
180 | -- To enable auto expansin | 180 | -- To enable auto expansion |
181 | enable_autosnippets = true, | 181 | enable_autosnippets = true, |
182 | -- Uncomment to enable visual snippets triggered using <c-x> | ||
183 | -- store_selection_keys = '<c-x>', | ||
184 | }) | 182 | }) |
185 | -- LuaSnip key bindings | ||
186 | vim.keymap.set({ "i", "s" }, "<C-l>", | ||
187 | function() if ls.expand_or_jumpable() then ls.expand_or_jump() else vim.api.nvim_input('<C-l>') end end, | ||
188 | { silent = true }) | ||
189 | vim.keymap.set({ "i", "s" }, "<C-k>", function() ls.jump(-1) end, { silent = true }) | ||
190 | vim.keymap.set({ "i", "s" }, "<C-E>", function() if ls.choice_active() then ls.change_choice(1) end end, | ||
191 | { silent = true }) | ||
192 | end | 183 | end |
193 | 184 | ||
194 | }, | 185 | }, |