Closed haunt98 closed 2 months ago
Unfortunately, no.
The whole idea of 'mini.cursorword' is to highlight whole word under cursor. In the same way as would built-in *
, #
, etc. work.
So although I do understand the appeal of not highlighting short words, this is both not easy to do with current implementation (which uses built-in matches and Vim patterns) and not aligned with built-in behavior.
For example:
a-b-c
, when I move toa
I don't want to hightlight all worda
.
For this particular example I can suggest to add "-" character to a list of characters that are recognized as a part of what Neovim considers to be a "keyword". This can be done by modifying 'iskeyword' option like so: vim.opt.iskeyword:append('-')
.
Closing as not planned.
Hi @echasnovski , thanks for fast reply. Your sugestion works!
Contributing guidelines
Module(s)
mini.cursorword
Description
Is there a way to disable mini.cursorword when I click to short word (single char). For example:
a-b-c
, when I move toa
I don't want to hightlight all worda
.