neovim configuration using rocks.nvim plugin manager

feat(luasnip): replace `<c-y>` mapping to `<c-]>`

+4 -4
+4 -4
lua/plugins/luasnip.lua
··· 42 42 43 43 vim.g.ls_next_choice_map = "<c-j>" 44 44 45 - vim.keymap.set({ "i", "s" }, "<c-y>", function() 46 - if vim.fn.pumvisible() ~= 0 then 47 - return "<c-y>" 48 - elseif ls.expandable() then 45 + vim.keymap.set({ "i", "s" }, "<c-]>", function() 46 + if ls.expandable() then 49 47 vim.schedule(function() 50 48 ls.expand() 51 49 end) 50 + else 51 + return "<c-]>" 52 52 end 53 53 end, { silent = true, expr = true }) 54 54 vim.keymap.set({ "i", "s" }, vim.g.ls_next_choice_map, function()