one-small-step-for-vimkind icon indicating copy to clipboard operation
one-small-step-for-vimkind copied to clipboard

Customizable command to launch nvim

Open meijieru opened this issue 3 years ago • 2 comments

In the latest nightly build NVIM v0.7.0-dev+667-g419e0d117d

:lua require"osv".run_this() or :lua require"osv".launch() results in the following error

E5108: Error executing lua Vim:Error invoking 'nvim_exec_lua' on channel 10:
Error executing lua: [string "<nvim>"]:1: module 'osv' not found:        no field package.preload['osv']        no file './osv.lua'        no file '/usr/share/luajit-2.0.5/osv.lua'        no file '/usr/local/share/lua/5.1/osv.lua'        no file '/usr/local/share/lua/5.1/osv/init.lua'        no file '/usr/share/lua/5.1/osv.lua'        no file '/usr/share/lua/5.1/osv/init.lua'        no file './osv.so'        no file '/usr/local/lib/lua/5.1/osv.so'        no file '/usr/lib/lua/5.1/osv.so'        no file '/usr/local/lib/lua/5.1/loadall.so'stack traceback:        [C]: in function 'require'        [string "<nvim>"]:1: in main chunkstack traceback:        [C]: in function 'rpcrequest'        ...packer/start/one-small-step-for-vimkind/lua/osv/init.lua:706: in function 'run_this'        [string ":lua"]:1: in main chunk

meijieru avatar Dec 04 '21 18:12 meijieru

I just realized that I use nvim -u ${CONFIG_FILE} command, so the bare nvim could not find the module. An way to customize the launch command would be helpful in this case.

meijieru avatar Dec 05 '21 11:12 meijieru

Same happens in my setup. I'm using LunarVim, which by default provides a configuration file

johmsalas avatar Jul 13 '22 02:07 johmsalas

Did anyone get this solved using LunarVim?

mpas avatar Jan 06 '23 13:01 mpas

i met the same problem.

hawkinchina avatar May 20 '23 02:05 hawkinchina