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