Skip to content

Commit cf066ec

Browse files
authored
Merge pull request #1358 from snoweuph/feature/lua-selene
language/lua: add `selene` for more diagnostics
2 parents 6298765 + fcfd187 commit cf066ec

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/manual/release-notes/rl-0.9.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,8 @@
145145
[Machshev](https://github.com/machshev):
146146
147147
- Added `ruff` and `ty` LSP support for Python under `programs.python`.
148+
149+
[Snoweuph](https://github.com/snoweuph)
150+
151+
- Added [Selenen](https://github.com/kampfkarren/selene) for more diagnostics in
152+
`languages.lua`.

modules/plugins/languages/lua.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
inherit (lib.modules) mkIf mkMerge;
1010
inherit (lib.meta) getExe;
1111
inherit (lib.types) bool enum listOf;
12-
inherit (lib.nvim.types) diagnostics mkGrammarOption deprecatedSingleOrListOf;
12+
inherit (lib.nvim.types) diagnostics mkGrammarOption;
1313
inherit (lib.nvim.dag) entryBefore;
1414
inherit (lib.nvim.attrsets) mapListToAttrs;
1515

@@ -46,6 +46,9 @@
4646
luacheck = {
4747
package = pkgs.luajitPackages.luacheck;
4848
};
49+
selene = {
50+
package = pkgs.selene;
51+
};
4952
};
5053
in {
5154
imports = [
@@ -79,7 +82,7 @@ in {
7982
description = "Enable Lua formatting";
8083
};
8184
type = mkOption {
82-
type = deprecatedSingleOrListOf "vim.language.lua.format.type" (enum (attrNames formats));
85+
type = listOf (enum (attrNames formats));
8386
default = defaultFormat;
8487
description = "Lua formatter to use";
8588
};

0 commit comments

Comments
 (0)