Files
hypr-dotfiles/config/hypr/.luarc.json
T
hermes ad32aef557 Add .luarc.json to silence lua-language-server 'Undefined global hl'
Hyprland injects hl/hyde/__require as globals at runtime; the LSP lints
against stock Lua 5.4 and flags every use. Declaring them as known
globals in ~/.config/hypr/.luarc.json clears the diagnostics for all
Lua files in that directory.
2026-11-01 23:09:49 +00:00

10 lines
137 B
JSON

{
"runtime.version": "Lua5.4",
"diagnostics.globals": [
"hl",
"hyde",
"__require",
"vim"
]
}