telescope-command-palette.nvim icon indicating copy to clipboard operation
telescope-command-palette.nvim copied to clipboard

use entries from neovim's menu (accessible programmatically via menu_get)

Open teto opened this issue 2 years ago • 3 comments

Would it be possible to load menus directly from vim menu https://github.com/vim/vim/issues/1563 ? This way one could reuse entries across the different plugins. (I used to do that in https://github.com/teto/nvim-palette so it's possible if you are interested)

teto avatar Jan 11 '22 00:01 teto

Hello. CpMenu is just a simple table in lua.

I don't have any plan to support vim(or port this plugin to viml). Also if you want to use CpMenu in other neovim plugins, you can access it:

require('command_palette').CpMenu

LinArcX avatar Jan 11 '22 09:01 LinArcX

I only use neovim as well, sry my first post was unclear but would it be possible to load entries from neovim's :h menu_get() function so that this plugin can leverage my entries out of the box without having me change the format just for this peculiar plugin ? Ideally one could even select a submenu

teto avatar Jan 11 '22 09:01 teto

Pull requests are welcome.

LinArcX avatar Jan 11 '22 13:01 LinArcX