forked from mpeterv/luacheck
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Config not searched in $XDG_CONFIG_HOME
on macOS
#88
Comments
Feel free to open a PR, this sounds like a reasonable request. I will help facilitate a PR but I am not on macOS to test. My suggestion would be to search tho macOS native location first and use that config if found, and fall back to checking the XDG location and use that, again if found. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, thanks for this great tool. I recently started using it together with NeoVim and it works splendid!
As documented, the config file is on macOS looked for in
$HOME/Library/Application\ Support/Luacheck
and not in the XDG path$XDG_CONFIG_HOME/luacheck
.macOS is also a modern Unix-like/based system and it would make sense to look for the config file in the XDG Path if not found in the Library path. I manage my config files in a dotfiles repo and have everything in
~/.config
that supports this. I think many developers in macOS also utilize the XDG paths.In my case this meant that in the NeoVim plugin ALE I had to configure luacheck with extra options:
This should not be needed.
The code that would need update is here:
luacheck/src/luacheck/config.lua
Lines 32 to 38 in fcbdeac
If not finding a config in the Library path, the same logic that is currently in the
else
clause should be done in the Darwin caseThe text was updated successfully, but these errors were encountered: