mini.nvim icon indicating copy to clipboard operation
mini.nvim copied to clipboard

"Scanning tags." when typing in insert mode

Open xigoi opened this issue 2 years ago • 2 comments

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?

xigoi avatar Oct 19 '21 10:10 xigoi

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).

echasnovski avatar Oct 19 '21 10:10 echasnovski

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.

echasnovski avatar Oct 19 '21 10:10 echasnovski

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.

echasnovski avatar Oct 14 '22 06:10 echasnovski