vhyrro / luarocks.nvim

Easily install luarocks with lazy.nvim
The Unlicense
81 stars 6 forks source link

Incorrect manual build trigger instruction #20

Open Stuv7CB opened 6 months ago

Stuv7CB commented 6 months ago

Hello,

Calling nvim -l ./build.lua ignores settings from init.vim file and didn't install rocks specified there.

For vim-plug I was managed to fix this using :source ./build.lua command as post-install hook. It seems that for other plugin managers this is correct way of building as well.

A snippet from my init.vim

Plug 'vhyrro/luarocks.nvim', {'do': ':source ./build.lua'}

And config

lua <<EOF
require("luarocks-nvim").setup {
    rocks = { },
}

EOF
vhyrro commented 5 months ago

Good to know, thanks for the heads up! I'll play around with this to verify and if so will prefer sourcing instead :)

timtyrrell commented 5 months ago

@Stuv7CB thank you, this got me through the install.