fix commandline cmp select on tab

This commit is contained in:
Patrick Neff 2024-08-07 11:04:14 +02:00
parent aee3628a7e
commit 13db25f74d
1 changed files with 18 additions and 10 deletions

View File

@ -201,6 +201,14 @@
];
};
":" = {
completion.completeopt = "menu,menuone,noselect";
mapping = {
__raw = ''
cmp.mapping.preset.cmdline({
["<CR>"] = cmp.mapping.confirm { select = true },
})
'';
};
sources = [
{
name = "path";
@ -212,7 +220,7 @@
};
"?" = {
mapping = {
completion.completeopt = "menuone,noselect";
completion.completeopt = "menu,menuone,noselect";
__raw = "cmp.mapping.preset.cmdline({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),