jbyuki / venn.nvim

Draw ASCII diagrams in Neovim
MIT License
919 stars 20 forks source link

Initialization function from README fails #17

Closed matu3ba closed 2 years ago

matu3ba commented 2 years ago

Running inside cmd window with :lua Toggle_venn fails with

E5107: Error loading lua [string ":lua"]:1: '=' expected near '<eof>'

Subsequent drawing is then not possible with HJKL.

Running :VBox<CR> still works though.

jbyuki commented 2 years ago

The paranthesis in the call is missing. So the correct call would be :lua Toggle_venn().

There are some cases where you can omit the parenthesis in Lua such as with a single string argument or table argument but with no argument, it throws a an error.

matu3ba commented 2 years ago

Thanks.

I should have added the exact circumstances, because I cant reproduce now. Closing.