Closed 0rtz closed 1 year ago
I think the problem is related to multibyte characters. Please wait while I investigate.
Fixed in 94cadf96140dca39920a7115c3b86f1312b361ab. Please update the latest version and test it.
Yeah, I see it works now, thank you.
Tho, completion is really slow, can I speed up it somehow? I see that russian dictionary in aspell after expansion is really huge, is it possible to truncate it?
The candidate acquisition itself is done by bisection search, so I don't think it will be that slow. I think that a large number of candidates are passed to the main body of cmp, and the subsequent sorting and display process may be taking time. I will try to create a mechanism to limit the number of candidates returned to the main body.
Can you try #32?
Well, it doesn't lag, but results of completion seems odd
That's right. If we return all the candidates, it would be too laggy, so to avoid that, we reduce the number of candidates to be returned.
You can increase the number of max_items
in setup, and/or increase the number of exact
, or set it to -1 (the candidates returned by this plugin to the main body are those looked for by prefix exact match for the number of exact
only, and fuzzy match is the job of the main body).
require("cmp_dictionary").setup({
--- other settings
max_items = 1000, -- Default: 100
exact = -1, -- Prefix exact match
})
Please try and let me know how much these should be set to just the right numbers, as I would like to determine the appropriate default settings. Is it less at 100?
PR for max_items has been merged. The default value is set to -1 (unlimited).
Please make good use of options max_items
and exact
.
Thank you
max_items = 2000,
exact = -1,
works decent for Russian language
Hello, thank you for the plugin. Can you please hint me on how to set up suggestions from russian dictionary? I have the following
init.vim
:But I do not get any completions as I type in russian:
Executing
CmpDictionaryUpdate
after entering buffer also does not help.While english seems to work fine:![image](https://user-images.githubusercontent.com/46892933/186610762-7594af96-6e42-4024-a855-ec2863a81fd9.png)
I use
aspell-en
andaspell-ru
packages on archlinux and the following command to get dictionaries: