cmp-fuzzy-path
cmp-fuzzy-path copied to clipboard
Lag issues
The cursor lags when typing a path in commandline mode.
I assume the code is blocking rather than async when loading the path.
The code is not blocking.
Moreover, you can set a lower timeout value for fd_timeout_msec
, which will abort too long callbacks.
Try this:
cmp.setup.cmdline(':', {
sources = cmp.config.sources({
{ name = 'fuzzy_path', options = {fd_timeout_msec = 50} }
})
})
You can also check CmpFuzzyStats
to see how many times the timeout was exceeded.