luasnip jump quickfix

master
spike 2 years ago
parent 30b861d5e3
commit bf50d7e8c6

@ -2,6 +2,10 @@
local M = {}
local colors = {
neon = "#3ece8d"
}
-- make sure you maintain the structure of `core/default_config.lua` here,
-- example of changing theme:
--

@ -87,7 +87,9 @@ local options = {
-- luasnip forward jump
["<C-k>"] = cmp.mapping(function(fallback)
local luasnip = require("luasnip")
if luasnip.expand_or_jumpable() then
if luasnip.jumpable(1) then
luasnip.jump(1)
elseif luasnip.expandable() then
luasnip.expand_or_jump()
elseif has_words_before() then
cmp.confirm()

Loading…
Cancel
Save