-
I guess it could apply to any neovim compatiable plugin that doesn't use lua, but i was motivated to ask while trying to setup quickui: {
'skywind3000/vim-quickui',
config = function ()
require('quickui').setup({}) -- ?????
end
} |
Beta Was this translation helpful? Give feedback.
Answered by
yutkat
Mar 25, 2023
Replies: 1 comment
-
There is no culture to call the setup function except for Lua plugins. It is better to write the sample setup using vim.cmd as it is in Vim script. {
'skywind3000/vim-quickui',
config = function ()
vim.cmd([[call quickui#menu#reset()]])
vim.cmd([[call quickui#menu#install("&File", [
\ [ "&Open\t(:w)", 'call feedkeys(":tabe ")'],
\ [ "&Save\t(:w)", 'write'],
\ [ "--", ],
\ [ "LeaderF &File", 'Leaderf file', 'Open file with leaderf'],
\ [ "LeaderF &Mru", 'Leaderf mru --regexMode', 'Open recently accessed files'],
\ [ "LeaderF &Buffer", 'Leaderf buffer', 'List current buffers in leaderf'],
\ [ "--", ],
\ [ "J&unk File", 'JunkFile', ''],
\ ])
]])
-- https://github.com/skywind3000/vim-quickui/blob/master/test/menu_example.vim
end
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
folke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no culture to call the setup function except for Lua plugins.
It is better to write the sample setup using vim.cmd as it is in Vim script.