You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open Neovim then run :Rocks! install lualine.nvim | q.
Subsitute the last line (require('init')) with require('lualine').setup({}).
Reopen Neovim.
Open Neovim again.
Additional info
I visited the Lualine GH repo and followed the steps to make an issue, including the part involving making an isolated Neovim settings and, after testing, I reached the conclusion the problem is within rocks.nvim, since the actual setup works as intended in the isolated environment.
The text was updated successfully, but these errors were encountered:
This is because lualine uses vim.api.nvim_get_runtime_file instead of package.searchpath to search for its themes, which are in the lua directory.
This works if the package is installed with a flat hierarchy (which is how most plugin managers install plugins), but not if it is installed as a luarocks package.
I will look into PRing a fix to lualine.nvim.
In the meantime, there are these workarounds:
Call lualine.setup() in a plugin script, e.g. ~/.nvim/plugin/lualine.lua
Expected behavior
Lualine is loaded.
Current behavior
Lualine throws an error , doesn't load and the rest of the Neovim files are sourced properly.
Reproducing
Make sure you installed
luarocks
for your distro.Get the first
init.lua
from my Neovim settings.Open Neovim then run
:Rocks! install lualine.nvim | q
.Subsitute the last line (
require('init')
) withrequire('lualine').setup({})
.Reopen Neovim.
Open Neovim again.
Additional info
I visited the Lualine GH repo and followed the steps to make an issue, including the part involving making an isolated Neovim settings and, after testing, I reached the conclusion the problem is within rocks.nvim, since the actual setup works as intended in the isolated environment.
The text was updated successfully, but these errors were encountered: