feat: all yanky and debugprint

This commit is contained in:
gwg313 2024-09-28 11:31:48 -04:00
parent eaf110c96f
commit 63bbeaca3b
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
7 changed files with 221 additions and 7 deletions

View file

@ -69,10 +69,10 @@
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<Tab>" = ''
cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif require("luasnip").expand_or_locally_jumpable() then
if require("luasnip").expand_or_locally_jumpable() then
require("luasnip").expand_or_jump()
elseif cmp.visible() then
cmp.select_next_item()
elseif has_words_before() then
cmp.complete()
else
@ -82,10 +82,10 @@
'';
"<S-Tab>" = ''
cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then
if require("luasnip").jumpable(-1) then
require("luasnip").jump(-1)
elseif cmp.visible() then
cmp.select_prev_item()
else
fallback()
end