chore: [NVIM] updated nvim config with some stuff

has tmux line integrated
This commit is contained in:
Afonso Franco 2024-02-22 11:32:07 +00:00
parent e99443160e
commit e623bf4432
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
6 changed files with 27 additions and 46 deletions

View file

@ -151,30 +151,17 @@ cmp.setup {
name = "nvim_lsp",
entry_filter = function(entry, context)
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 - 1)
if char_before_cursor == "." then
if kind == 2 or kind == 5 then
return true
else
return false
end
elseif string.match(line, "^%s*%w*$") then
if kind == 3 or kind == 6 then
return true
else
return false
end
end
vim.api.nvim_out_write(kind .. '\n')
if kind == "Text" then return false end
return true
end
},
{ name = 'orgmode' },
{ name = 'nvim_lua' },
{ name = 'luasnip' },
{ name = "vim-dadbod-completion" },
--{ name = "vim-dadbod-completion" },
{ name = "path" },
},
{