Increased completion keyword length

Also made lsp the first item in sources.
This commit is contained in:
alejandro-angulo 2024-08-17 22:36:13 -07:00
parent c2019dad46
commit 4ae16d3294
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -2,6 +2,8 @@
plugins.cmp = { plugins.cmp = {
enable = true; enable = true;
settings = { settings = {
completion = {keyword_length = 2;};
mapping = { mapping = {
"<C-n>" = "cmp.mapping.select_next_item()"; "<C-n>" = "cmp.mapping.select_next_item()";
"<C-p>" = "cmp.mapping.select_prev_item()"; "<C-p>" = "cmp.mapping.select_prev_item()";
@ -20,11 +22,11 @@
''; '';
sources = [ sources = [
{name = "nvim_lsp";}
{name = "buffer";} {name = "buffer";}
{name = "cmdline";} {name = "cmdline";}
{name = "cmp-clippy";} {name = "cmp-clippy";}
{name = "luasnip";} {name = "luasnip";}
{name = "nvim_lsp";}
{name = "path";} {name = "path";}
]; ];
}; };