integrate selene linting

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

View File

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