jbyuki / venn.nvim

Draw ASCII diagrams in Neovim
MIT License
967 stars 21 forks source link

Issues when installing using Plug #16

Closed opensourcegeek closed 2 years ago

opensourcegeek commented 2 years ago

I've just tried to install this plugin using Plug and I get the following error,

x venn.nvim:
    fatal: invalid reference: master

I thought it's probably pointing to master when the branch is called 'main'. So I installed this plugin using Plug 'jbyuki/venn.nvim', { 'branch': 'main' } and that worked without errors. But now when I invoke :VBox I get 'Not an editor command :VBox'. I tried PlugClean just to make sure nothing was getting left behind when it errors out, but still the same issue. I haven't added your key mappings by the way, but I think the :VBox command should work regardless, isn't it? Thanks for what looks like a really promising drawing plugin for nvim. (Been using mermaidjs in markdown files, but this will mean I can draw in any file - cheers for that)

jbyuki commented 2 years ago

Hi there, This might just be that venn.nvim was not installed for some reason. Yes, if the plugin is installed :VBox is automatically enabled. You could try to check if venn is present in :echo stdpath('data'). If not, you might have to install it once again.

opensourcegeek commented 2 years ago

Thanks @jbyuki - it's not there but when I PlugInstall again it says it's already installed (- venn.nvim: Already installed ). I do see it in plugged dir though (~/.config/nvim/plugged/venn.nvim/).

jbyuki commented 2 years ago

Let's try something, if you type :scriptnames, do you see ../plugged/venn.nvim/plugin/venn.vim being sourced? If the file is there it should be.

EDIT: I just noticed that the plugin command registration script for :VBox is written in lua (see the file in plugin/). Are you running standard vim by any chance? It only works on nvim unfortunately.

opensourcegeek commented 2 years ago

Sorry for the delayed response, as I was off for couple of days. I'm on neovim (v0.6.1), I was on an older version earlier - (0.5.x). So, I tried updating neovim and installing the plugin again. It works fine now, I don't think I changed anything other than neovim version. Thanks for looking into this, happy it's working now :)