adding lua commands I dont want mapped #147
-
First of all, thank you for an awesome plugin. It has been very useful to me. Secondly, I have some custom lua functions that I would like to show in the Legendary display. I tried adding them to Legendary: KeymapsERROR: needs lhs for it to be added keymaps = {
{'', require"util/custom".func, description = "My Own Function" }
} CommandsERROR: command doesnt start with a capital letter. commands = {
{ '<cmd>lua require"plugin.sniprun.repl".toggle()<cr>', require"plugin.sniprun.repl".toggle, description = 'sniprun REPL toggle' },
} Can I add these lua functions to Legendary without mapping them or creating nvim commands that call the lua functions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Just give the command a name: commands = {
{ ':SnipRunRepl', require"plugin.sniprun.repl".toggle, description = 'sniprun REPL toggle' },
} |
Beta Was this translation helpful? Give feedback.
Just give the command a name: