improve completion
This commit is contained in:
parent
4bea1284bf
commit
a900a9796a
1 changed files with 4 additions and 4 deletions
|
|
@ -8,15 +8,15 @@
|
||||||
# For path completion
|
# For path completion
|
||||||
{ name = "path"; }
|
{ name = "path"; }
|
||||||
# For buffer completion
|
# For buffer completion
|
||||||
{ name = "buffer"; }
|
{ name = "buffer"; keyword_length = 5; }
|
||||||
# For command line completion
|
# For command line completion
|
||||||
{ name = "cmdline"; }
|
{ name = "cmdline"; }
|
||||||
];
|
];
|
||||||
mapping = {
|
mapping = {
|
||||||
# <CR> means enter
|
# <CR> means enter
|
||||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
||||||
"<Tab>" = "cmp.mapping.select_next_item()";
|
"<C-n>" = "cmp.mapping.select_next_item()";
|
||||||
"<S-Tab>" = "cmp.mapping.select_prev_item()";
|
"<C-p>" = "cmp.mapping.select_prev_item()";
|
||||||
"<C-e>" = "cmp.mapping.close()";
|
"<C-e>" = "cmp.mapping.close()";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue