Multiple changes

This commit is contained in:
fbecker18
2022-05-25 10:51:22 +02:00
parent ca4e37f042
commit c08658eccc
10 changed files with 38 additions and 70 deletions

View File

@@ -40,26 +40,8 @@ cmp.setup({
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
select = false, -- only replace if explicitly selected
},
['<Tab>'] = function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
else
fallback()
end
end,
['<S-Tab>'] = function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
end,
},
sources = cmp.config.sources({
{ name = 'cmp_tabnine' },

View File

@@ -5,7 +5,7 @@ require('nvim-treesitter.configs').setup({
enable = true
},
indent = {
enable = true
enable = false
},
incremental_selection = {
enable = true,