refactor backup

This commit is contained in:
Kopatz
2024-04-21 11:04:18 +02:00
parent ad10b366ec
commit d02e9e0b09
5 changed files with 37 additions and 86 deletions

View File

@@ -477,6 +477,7 @@ local servers = {
rust_analyzer = {},
jdtls = {},
vtsls = {},
clangd = {},
lua_ls = {
Lua = {
@@ -542,15 +543,16 @@ cmp.setup {
fallback()
end
end, { 'i', 's' }),
['<S-Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
end, { 'i', 's' }),
--collision
--['<S-Tab>'] = cmp.mapping(function(fallback)
-- if cmp.visible() then
-- cmp.select_prev_item()
-- elseif luasnip.locally_jumpable(-1) then
-- luasnip.jump(-1)
-- else
-- fallback()
-- end
--end, { 'i', 's' }),
},
sources = {
{ name = 'nvim_lsp' },

View File

@@ -0,0 +1,5 @@
vim.g.tabby_keybinding_accept = '<S-Tab>'
return {
'TabbyML/vim-tabby'
}