Open roxma opened 7 years ago
I have a simple implementation.
But the flikering feels terrible for remote terminal user, due to nvim's builtin popup menu filtering.
I'm planning on an attempt to use the completefunc
to tune the NCM core implementation to reduce the flickering. I'm not sure it's gonna work, though.
The flickering could be fixed with completefunc
implementation.
But I feel cursor flickering at the right bottom corner of the popup menu, though, it cannot be seen in this screencast. I don't know how to fix this.
Update screencast for cursor flickering
Related issue https://github.com/neovim/neovim/issues/6115
nice work 👍
Fuzzy matching could be enabled with this setting:
let g:cm_matcher = {'module': 'cm_matchers.fuzzy_matcher', 'case': 'smartcase'}
I'm keeping this issue open until the cursor flickering issue is fixed.
great work!
There's a more intuitive version of fuzzy matching brought by @sassanh , on https://github.com/roxma/nvim-completion-manager/pull/80
let g:cm_matcher = {'module': 'cm_matchers.abbrev_matcher'}
EDIT:
This module requires the ag
binary from the_silver_searcher
let g:cm_matcher = {'module': 'cm_matchers.abbrev_matcher'}
does not work for me. I have ag
in the $PATH
.
@meain can you check the logs and see what's going wrong? https://github.com/roxma/nvim-completion-manager/wiki/Trouble-shooting
@sassanh Any idea as to what I should be looking for. Also which log file should I be checking?
cat nvim_log_py3_cm_* | grep ERROR
returned nothing
@meain
consider using -i
for your grep to make it incasesensitive.
@sassanh Still nothing.
@meain Is ncm working and fuzzy find not working or auto completion doesn't work at all?
Just fuzzy not working
That's strange. If fuzzy raises an error then ncm shouldn't work at all. How are you testing? What you type, what you expect to receive and what you actually get from ncm?
@sassanh Sorry, my bad. I was cheching fuzzy matching after setting abbrv matching. It works.
+1
Also should be able to customize the match function. Also could be async so that I could use other languages like golang for better fuzzy matching.
For asyncomplete I'm internally using https://github.com/tpope/vim-haystack filter function but haven't pushed it to public yet.