chore: Massive restructure. FIXED TAB BUG . Packer -> Lazy . barbar -> bufferline .

This commit is contained in:
Afonso Franco 2023-01-14 04:05:17 +00:00
parent b2267a0e47
commit 5e1cd7267d
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
15 changed files with 275 additions and 500 deletions

View file

@ -62,18 +62,11 @@ cmp.setup {
i = cmp.mapping.abort(),
c = cmp.mapping.close(),
},
-- Accept currently selected item. If none selected, `select` first item.
-- Set `select` to `false` to only confirm explicitly selected items.
["<CR>"] = cmp.mapping.confirm { select = true },
-- Accept currently selected item. If none selected, do nothing.
["<CR>"] = cmp.mapping.confirm { select = false },
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expandable() then
luasnip.expand()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
elseif check_backspace() then
fallback()
else
fallback()
end
@ -84,8 +77,6 @@ cmp.setup {
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
@ -125,7 +116,7 @@ cmp.setup {
local kind = entry:get_kind()
local line = context.cursor_line
local col = context.cursor.col
local char_before_cursor = string.sub(line, col - 1, col)
local char_before_cursor = string.sub(line, col - 1, col - 1)
if char_before_cursor == "." then
@ -144,7 +135,7 @@ cmp.setup {
},
{ name = 'nvim_lua' },
{ name = 'luasnip'},
{ name = 'luasnip' },
{ name = 'nvim_lsp_signature_help' },
{ name = "path" },
},