From 588536a81bb5090ab9b15f56b40ac1280338f567 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 20 Aug 2024 09:29:06 +0200 Subject: nvim: remove luasnip bindings use tab/enter workflow --- .config/nvim/lua/plugins/cmp.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to '.config/nvim/lua/plugins') 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 { -- Required to automatically include base snippets, like "c" snippets for "cpp" load_ft_func = require('luasnip_snippets.common.snip_utils').load_ft_func, ft_func = require('luasnip_snippets.common.snip_utils').ft_func, - -- To enable auto expansin + -- To enable auto expansion enable_autosnippets = true, - -- Uncomment to enable visual snippets triggered using - -- store_selection_keys = '', }) - -- LuaSnip key bindings - vim.keymap.set({ "i", "s" }, "", - function() if ls.expand_or_jumpable() then ls.expand_or_jump() else vim.api.nvim_input('') end end, - { silent = true }) - vim.keymap.set({ "i", "s" }, "", function() ls.jump(-1) end, { silent = true }) - vim.keymap.set({ "i", "s" }, "", function() if ls.choice_active() then ls.change_choice(1) end end, - { silent = true }) end }, -- cgit v1.2.3-70-g09d2