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

Merged
merged 1 commit into from
Nov 1, 2024

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.

@shadmansaleh shadmansaleh merged commit 6f2def5 into nvim-lualine:master Nov 1, 2024
5 checks passed
@shadmansaleh
Copy link
Member

Thanks. neorocks looks interesting.

@mrcjkb mrcjkb deleted the push-kxpkvvtzkzqt branch November 1, 2024 09:54
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
2 participants