mirror of
https://github.com/softinio/nix-config.git
synced 2025-10-18 19:16:41 -07:00
corrections and improvements to have all neovim lsp and completions working
This commit is contained in:
parent
f98fe01b0c
commit
7584b9ebfc
7 changed files with 130 additions and 31 deletions
|
@ -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"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue