fix commandline cmp select on tab
This commit is contained in:
parent
aee3628a7e
commit
13db25f74d
|
|
@ -10,7 +10,7 @@
|
|||
store_selection_keys = "<Tab>";
|
||||
};
|
||||
fromLua = [
|
||||
{paths = ../../snippets;}
|
||||
{ paths = ../../snippets; }
|
||||
];
|
||||
};
|
||||
lspkind = {
|
||||
|
|
@ -69,14 +69,14 @@
|
|||
'';
|
||||
completion.completeopt = "menu,preview";
|
||||
sources = [
|
||||
{name = "luasnip";}
|
||||
{name = "nvim_lsp";}
|
||||
{name = "nvim_lsp_signature_help";}
|
||||
{name = "nvim_lsp_document_symbol";}
|
||||
{name = "codeium";}
|
||||
{name = "path";}
|
||||
{name = "buffer";}
|
||||
{name = "treesitter";}
|
||||
{ name = "luasnip"; }
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "nvim_lsp_signature_help"; }
|
||||
{ name = "nvim_lsp_document_symbol"; }
|
||||
{ name = "codeium"; }
|
||||
{ name = "path"; }
|
||||
{ name = "buffer"; }
|
||||
{ name = "treesitter"; }
|
||||
];
|
||||
mapping = {
|
||||
__raw = ''
|
||||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue