Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(loader): look for themes on package.path #1300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrcjkb
Copy link
Contributor

@mrcjkb mrcjkb commented Sep 16, 2024

Fixes nvim-neorocks/rocks.nvim#536.

When lualine.nvim is installed as a luarocks package1, the loader can't find the themes on the runtimepath, because
Neovim doesn't keep the runtimepath and package.path in sync.
This PR introduces a fallback search of the package.path if a theme can't be found on the runtimepath.

Footnotes

  1. luarocks installs packages with a non-flat hierarchy, with lua and lib directories in a separate tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lualine.nvim errors when calling setup in init.lua
1 participant