mini.nvim
mini.nvim copied to clipboard
"Scanning tags." when typing in insert mode
When I'm typing something in insert mode and there's no completion available, the command line keeps saying Scanning tags.
, which is really annoying. Would it be possible to get rid of this?
By default if no LSP completion available 'mini.completion' acts like user typed <C-n>
to complete from sources defined in 'complete'. If it says scanning tags
, it means that you have t
in 'complete'. If you remove it with set complete-=t
, this message won't show.
Bad news is, probably another message will be shown (something like "Scanning <file>"). I couldn't find the way to disable those messages. I hoped that having c
in 'shortmess' would solve this but it is not the case. I think there is some issue or PR in Vim/Neovim to fix this, but don't quite remember. It was annoying for me at first, but then somehow I adapted to this.
If this is really annoying, you can either disable fallback completion (supply function() end
as MiniCompletion.config.fallback_action
) or try something else (maybe other mapping from :h ins-completion
).
Another semi-solution that seems to "work" comes from these comments:
-
set showmode
. -
set shortmess+=c
. - "Hide" mode message by defining
hi ModeMsg guifg=<your background color> guibg=NONE gui=NONE
. This way it will be shown but not seen.
After almost a year, this is finally possible in Neovim nightly. See neovim/neovim#20633. I've just tested with latest release, and doing :set shortmess+=C
works.