improve completion

This commit is contained in:
Osman Faruk Bayram 2025-03-16 02:16:00 +03:00
parent 4bea1284bf
commit a900a9796a

View file

@ -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()";
};
};
};
}
}