mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-03 10:25:52 +00:00
language/lua: add selene for more diagnostics
This commit is contained in:
parent
385c49d93d
commit
1f8d994e07
2 changed files with 10 additions and 2 deletions
|
|
@ -144,3 +144,8 @@
|
||||||
[Machshev](https://github.com/machshev):
|
[Machshev](https://github.com/machshev):
|
||||||
|
|
||||||
- Added `ruff` and `ty` LSP support for Python under `programs.python`.
|
- Added `ruff` and `ty` LSP support for Python under `programs.python`.
|
||||||
|
|
||||||
|
[Snoweuph](https://github.com/snoweuph)
|
||||||
|
|
||||||
|
- Added [Selenen](https://github.com/kampfkarren/selene) for more diagnostics in
|
||||||
|
`languages.lua`.
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
inherit (lib.modules) mkIf mkMerge;
|
inherit (lib.modules) mkIf mkMerge;
|
||||||
inherit (lib.meta) getExe;
|
inherit (lib.meta) getExe;
|
||||||
inherit (lib.types) bool enum listOf;
|
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.dag) entryBefore;
|
||||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||||
|
|
||||||
|
|
@ -46,6 +46,9 @@
|
||||||
luacheck = {
|
luacheck = {
|
||||||
package = pkgs.luajitPackages.luacheck;
|
package = pkgs.luajitPackages.luacheck;
|
||||||
};
|
};
|
||||||
|
selene = {
|
||||||
|
package = pkgs.selene;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -79,7 +82,7 @@ in {
|
||||||
description = "Enable Lua formatting";
|
description = "Enable Lua formatting";
|
||||||
};
|
};
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
type = deprecatedSingleOrListOf "vim.language.lua.format.type" (enum (attrNames formats));
|
type = listOf (enum (attrNames formats));
|
||||||
default = defaultFormat;
|
default = defaultFormat;
|
||||||
description = "Lua formatter to use";
|
description = "Lua formatter to use";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue