integrate selene linting

This commit is contained in:
Michael Chris Lopez committed 2021-10-29 15:00:22 +08:00
1 parent c441a98b80
commit a436a4cfd2
10 files changed
+40 -1

No files matched your search

+4
View File
@@ -6,9 +6,13 @@ local p = require("rosebones.palette")[bg]
local specs = generator.generate(p, bg, generator.get_global_config("rosebones", bg))
return lush.extends({ specs }).with(function()
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
Statement { fg = p.leaf },
Special { fg = p.water },
Type { fg = p.text },
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)