fix(nvim): cmp finally stopped jumping around

This commit is contained in:
Léana 江 2023-04-17 21:53:27 +02:00 committed by Léana 江
parent 859e77550e
commit d2c8493f28
10 changed files with 61 additions and 109 deletions

View file

@ -28,7 +28,7 @@ cmp.setup({
cmp.select_next_item()
-- You could replace the expand_or_jumpable() calls with expand_or_locally_jumpable()
-- they way you will only jump inside the snippet region
elseif luasnip.expand_or_jumpable() then
elseif luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
elseif has_words_before() then
cmp.complete()