liuchengxu / vim-which-key

:tulip: Vim plugin that shows keybindings in popup
https://liuchengxu.github.io/vim-which-key/
MIT License
1.93k stars 66 forks source link

Spell check should not apply to popup window #129

Closed WhyNotHugo closed 3 years ago

WhyNotHugo commented 4 years ago

Environment (please complete the following information):

Describe the bug

If spell-checking is on for the current file I'm editing (e.g.: markdown), I also get spell checking in the which-key popup, which doesn't really make sense and just makes things ugly.

To Reproduce Steps to reproduce the behavior:

  1. :set spell
  2. Leader (or :WhichKey ' ' if you're on a clean setup)

Expected behavior

The popup should never have spellchecking on.

WhyNotHugo commented 4 years ago
autocmd FileType which_key setlocal nospell

Sorry for the noise!

WhyNotHugo commented 4 years ago

Actually, maybe this should be the default provided by the plugin? I can't think of any scenario where spell-checking would be desirable here?

BrotifyPacha commented 3 years ago

Added PR https://github.com/liuchengxu/vim-which-key/pull/174