Increased completion keyword length
Also made lsp the first item in sources.
This commit is contained in:
parent
c2019dad46
commit
4ae16d3294
|
@ -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";}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue