nvim: completion: Update nvim-compe settings

Sync with upstream. While at it, since we do not use autocomplete
anymore, change min_length to 1 to trigger completion easily.
This commit is contained in:
Sanchayan Maity 2021-07-16 10:50:26 +05:30
parent efaba37bcf
commit 2a2f85b82e

View file

@ -4,12 +4,23 @@ require'compe'.setup {
enabled = true;
autocomplete = false;
debug = false;
min_length = 2;
min_length = 1;
preselect = 'enable';
throttle_time = 80;
source_timeout = 200;
resolve_timeout = 800;
incomplete_delay = 400;
documentation = true;
max_abbr_width = 100;
max_kind_width = 100;
max_menu_width = 100;
documentation = {
border = { '', '' ,'', ' ', '', '', '', ' ' },
winhighlight = "NormalFloat:CompeDocumentation,FloatBorder:CompeDocumentationBorder",
max_width = 120,
min_width = 60,
max_height = math.floor(vim.o.lines * 0.3),
min_height = 1,
};
source = {
path = true;
@ -23,6 +34,9 @@ require'compe'.setup {
treesitter = true;
snippets_nvim = false;
vsnip = true;
ultisnips = false;
luasnip = false;
emoji = false;
};
}