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; enabled = true;
autocomplete = false; autocomplete = false;
debug = false; debug = false;
min_length = 2; min_length = 1;
preselect = 'enable'; preselect = 'enable';
throttle_time = 80; throttle_time = 80;
source_timeout = 200; source_timeout = 200;
resolve_timeout = 800;
incomplete_delay = 400; 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 = { source = {
path = true; path = true;
@ -23,6 +34,9 @@ require'compe'.setup {
treesitter = true; treesitter = true;
snippets_nvim = false; snippets_nvim = false;
vsnip = true; vsnip = true;
ultisnips = false;
luasnip = false;
emoji = false;
}; };
} }