mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-08 09:46:00 +00:00
Compare commits
5 commits
385c49d93d
...
cf066ec681
| Author | SHA1 | Date | |
|---|---|---|---|
|
cf066ec681 |
|||
|
fcfd1872da |
|||
|
|
1f8d994e07 |
||
|
62987658e0 |
|||
|
|
d47d7c7542 |
3 changed files with 28 additions and 3 deletions
|
|
@ -132,7 +132,8 @@
|
||||||
|
|
||||||
- Added [sqruff](https://github.com/quarylabs/sqruff) support to `languages.sql`
|
- Added [sqruff](https://github.com/quarylabs/sqruff) support to `languages.sql`
|
||||||
|
|
||||||
- Added [Pyrefly](https://pyrefly.org/) support to `languages.python`
|
- Added [Pyrefly](https://pyrefly.org/) and [zuban](https://zubanls.com/)
|
||||||
|
support to `languages.python`
|
||||||
|
|
||||||
- Added TOML support via {option}`languages.toml` and the
|
- Added TOML support via {option}`languages.toml` and the
|
||||||
[Tombi](https://tombi-toml.github.io/tombi/) language server, linter, and
|
[Tombi](https://tombi-toml.github.io/tombi/) language server, linter, and
|
||||||
|
|
@ -144,3 +145,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";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,22 @@
|
||||||
".git"
|
".git"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zuban = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.zuban) "server"];
|
||||||
|
filetypes = ["python"];
|
||||||
|
root_markers = [
|
||||||
|
"pyproject.toml"
|
||||||
|
"setup.py"
|
||||||
|
"setup.cfg"
|
||||||
|
"requirements.txt"
|
||||||
|
"Pipfile"
|
||||||
|
".git"
|
||||||
|
"mypy.ini"
|
||||||
|
".mypy.ini"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultFormat = ["black"];
|
defaultFormat = ["black"];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue