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