nvim-mapper icon indicating copy to clipboard operation
nvim-mapper copied to clipboard

Extremely slow to open.

Open Aumnescio opened this issue 2 years ago • 0 comments

I really like the functionality of this plugin, but it takes a good 5 seconds for Telescope to open when using the ":Telescope mapper" command. (The one provided by this plugin) I want to use a mapping finder like this, but taking that long to open makes this one essentially unuseable for me. I have about 300 mappings created, which is quite a bit, but still should not be slow. I think it was considerably faster with only about 6 created mappings, when I tested with less.

The built-in Telescope commands open basically instantly. For example ":Telescope keymaps" which has very similar functionality, without the important benefit of being able to document the mappings. That command finds 360 mappings.

Is the plugin slow for others too? And is there any chance the startup time could be improved? Or the results at least cached, so that only the first time would be slow. I could maybe implement a cache of sorts by myself, but I am quite clueless about Lua and the related APIs.

I am considering just raw grepping and/or fzf'ing my mappings file, as that will be essentially instant.

Aumnescio avatar Apr 25 '22 04:04 Aumnescio