corrections and improvements to have all neovim lsp and completions working

This commit is contained in:
Salar Rahmanian 2025-10-05 00:36:55 -07:00
parent f98fe01b0c
commit 7584b9ebfc
7 changed files with 130 additions and 31 deletions

View file

@ -11,6 +11,17 @@
plugins = {
luasnip.enable = true;
cmp-buffer.enable = true;
cmp-cmdline.enable = true;
cmp-fish.enable = true;
cmp-git.enable = true;
cmp_luasnip.enable = true;
cmp-nvim-lsp.enable = true;
cmp-nvim-lsp-document-symbol.enable = true;
cmp-nvim-lsp-signature-help.enable = true;
cmp-nvim-lua.enable = true;
cmp-path.enable = true;
lspkind = {
enable = true;
@ -19,11 +30,10 @@
enable = true;
menu = {
nvim_lsp = "[LSP]";
nvim_lua = "[api]";
path = "[path]";
luasnip = "[snip]";
buffer = "[buffer]";
cmp_tabby = "[Tabby]";
path = "[path]";
nvim_lua = "[api]";
};
};
};
@ -31,8 +41,14 @@
cmp = {
enable = true;
autoEnableSources = true;
settings = {
performance = {
debounce = 60;
throttle = 30;
fetching_timeout = 200;
};
snippet.expand = ''
function(args)
require('luasnip').lsp_expand(args.body)
@ -50,13 +66,15 @@
};
sources = [
{ name = "path"; }
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{
name = "buffer";
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
}
{ name = "path"; }
{ name = "nvim_lua"; }
{ name = "cmp-nvim-lsp-signature-help"; }
];
};
};