luukvbaal/nnn.nvim

Install as nvim package

dave-kennedy opened this issue · 2 comments

Usually to install I plugin I just clone it to .local/share/nvim/site/pack/plugins/start but it isn't working with this plugin. By that I mean there are no :Nnn* commands available. Is the only way to install this plugin to use a plugin manager?

You need to run require("nnn").setup() as per the README.

I added this to a file in my plugins directory:

lua << EOF
require("nnn").setup()
EOF

Now I'm getting this error:

Error detected while processing /home/dave/dotfiles/vim/plugin/nnn.vim:
line    3:
E5108: Error executing lua .../share/nvim/site/pack/plugins/start/nnn.nvim/lua/nnn.lua:554: at
tempt to call field 'nvim_create_user_command' (a nil value)
stack traceback:
        .../share/nvim/site/pack/plugins/start/nnn.nvim/lua/nnn.lua:554: in function 'setup'
        [string ":lua"]:1: in main chunk

Edit: it seems I need nvim >= 0.7. Maybe just mention this in the README.