skywind3000 / vim-quickui

The missing UI extensions for Vim 9 (and NeoVim) !! :sunglasses:
https://www.vim.org/scripts/script.php?script_id=5845
MIT License
1.09k stars 35 forks source link

Can't see menu in different file types #13

Closed LinArcX closed 4 years ago

LinArcX commented 4 years ago

Hi. i have a menu in my local .nvimrc file

But it only opens when I'm inside a .cpp or .hpp file. I want for example see this menu in .txt, .md or other file extensions too.

LinArcX commented 4 years ago

Oh, my mistake. I defined another menu and forgot ro remove it.

skywind3000 commented 4 years ago

recommendation:

use a separated context menu for different file types and bind it to K:

图片

https://github.com/skywind3000/vim/blob/2e3e9878d83731c656db655ff5f6dac548a8daab/plugin/menu_init.vim#L165-L190

And if you are writing C/C++ code, you may be interested in:

https://github.com/skywind3000/asynctasks.vim