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.
10 lines
137 B
JSON
10 lines
137 B
JSON
{
|
|
"runtime.version": "Lua5.4",
|
|
"diagnostics.globals": [
|
|
"hl",
|
|
"hyde",
|
|
"__require",
|
|
"vim"
|
|
]
|
|
}
|