diff options
author | Yigit Sever | 2024-08-20 09:29:06 +0200 |
---|---|---|
committer | Yigit Sever | 2024-08-20 09:29:06 +0200 |
commit | 588536a81bb5090ab9b15f56b40ac1280338f567 (patch) | |
tree | e33758fb4b86691da1214338526d4f7abd3c02e0 /.config/nvim/lua/plugins | |
parent | 190e23c17a6f4d85f7b2030c57b2b81b5f73be6f (diff) | |
download | dotfiles-588536a81bb5090ab9b15f56b40ac1280338f567.tar.gz dotfiles-588536a81bb5090ab9b15f56b40ac1280338f567.tar.bz2 dotfiles-588536a81bb5090ab9b15f56b40ac1280338f567.zip |
nvim: remove luasnip bindings
use tab/enter workflow
Diffstat (limited to '.config/nvim/lua/plugins')
-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 | }, |