tangled
alpha
login
or
join now
boltless.me
/
nvim_rocks
0
fork
atom
neovim configuration using rocks.nvim plugin manager
0
fork
atom
overview
issues
pulls
pipelines
feat(luasnip): replace `<c-y>` mapping to `<c-]>`
Seongmin Lee
1 year ago
2a02b31d
f1b0cca7
+4
-4
1 changed file
expand all
collapse all
unified
split
lua
plugins
luasnip.lua
+4
-4
lua/plugins/luasnip.lua
···
42
42
43
43
vim.g.ls_next_choice_map = "<c-j>"
44
44
45
45
-
vim.keymap.set({ "i", "s" }, "<c-y>", function()
46
46
-
if vim.fn.pumvisible() ~= 0 then
47
47
-
return "<c-y>"
48
48
-
elseif ls.expandable() then
45
45
+
vim.keymap.set({ "i", "s" }, "<c-]>", function()
46
46
+
if ls.expandable() then
49
47
vim.schedule(function()
50
48
ls.expand()
51
49
end)
50
50
+
else
51
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()