language/lua: add selene for more diagnostics

This commit is contained in:
Snoweuph 2026-01-24 09:48:45 +01:00
commit 1f8d994e07
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 10 additions and 2 deletions

View file

@ -9,7 +9,7 @@
inherit (lib.modules) mkIf mkMerge;
inherit (lib.meta) getExe;
inherit (lib.types) bool enum listOf;
inherit (lib.nvim.types) diagnostics mkGrammarOption deprecatedSingleOrListOf;
inherit (lib.nvim.types) diagnostics mkGrammarOption;
inherit (lib.nvim.dag) entryBefore;
inherit (lib.nvim.attrsets) mapListToAttrs;
@ -46,6 +46,9 @@
luacheck = {
package = pkgs.luajitPackages.luacheck;
};
selene = {
package = pkgs.selene;
};
};
in {
imports = [
@ -79,7 +82,7 @@ in {
description = "Enable Lua formatting";
};
type = mkOption {
type = deprecatedSingleOrListOf "vim.language.lua.format.type" (enum (attrNames formats));
type = listOf (enum (attrNames formats));
default = defaultFormat;
description = "Lua formatter to use";
};