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