Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Scanning tags." when typing in insert mode #5

Closed
xigoi opened this issue Oct 19, 2021 · 3 comments
Closed

"Scanning tags." when typing in insert mode #5

xigoi opened this issue Oct 19, 2021 · 3 comments

Comments

@xigoi
Copy link
Contributor

xigoi commented Oct 19, 2021

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?

@echasnovski
Copy link
Owner

echasnovski commented Oct 19, 2021

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
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants