Merge pull request #74 from n3oney/feature/custom-keybinds

fix tab not working
This commit is contained in:
NotAShelf 2023-05-10 15:03:26 +03:00 committed by GitHub
commit d0a2345bfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,9 @@ in {
elseif has_words_before() then
cmp.complete()
else
fallback()
local termcode = vim.api.nvim_replace_termcodes(${builtins.toJSON mappings.next.value}, true, false, true)
vim.fn.feedkeys(termcode, 'n')
end
end
'')
@ -157,7 +159,9 @@ in {
elseif has_words_before() then
cmp.complete()
else
fallback()
local termcode = vim.api.nvim_replace_termcodes(${builtins.toJSON mappings.next.value}, true, false, true)
vim.fn.feedkeys(termcode, 'n')
end
end
'')