No spec found for module spec #1791
-
I want to use my wsl nvim config even if I use nvim in powershell. In my windows nvim init.lua I have it set to package.path = "\\\\wsl.localhost\\Ubuntu\\home\\smeagol\\.config\\nvim\\lua\\?.lua" -- Require can access wsl config files
loadfile("\\\\wsl.localhost\\Ubuntu\\home\\smeagol\\.config\\nvim\\init.lua") () -- Run the init of my wsl My problem is that when running lazyvim.lua -- line 22 seems to give an error, spec = { ... , import = "plugins" } it fails to find my wsl plugin folder. I couldn't figure how I can fix the error saying that it cannot find my plugins module. How can I have lazy.nvim load my plugins module? If there is an easier way to have nvim use a custom config location rather than trying to do it manually with loadfile please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have realized that this is a bad strategy and doesn't work. I should use $NVIM_APPNAME instead. I am working on finding how to use my wsl location instead of the windows default I resolved this issue by setting the default directory to a SymbolicLink using |
Beta Was this translation helpful? Give feedback.
I have realized that this is a bad strategy and doesn't work. I should use $NVIM_APPNAME instead. I am working on finding how to use my wsl location instead of the windows default
I resolved this issue by setting the default directory to a SymbolicLink using
New-Item -ItemType SymbolicLink
Later update, I chose to move my config to windows (and flip the symbolic link) since windows is slow at reading wsl, but wsl does just fine reading from windows