mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-27 21:44:30 +00:00
Merge pull request #1418 from snoweuph/feat/toml
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
languages/toml: add taplo (#1386) and make it default instead of tombi
This commit is contained in:
commit
c07410f183
2 changed files with 27 additions and 3 deletions
|
|
@ -45,6 +45,9 @@
|
|||
allow valid options. `default` is no longer valid. `inline` and `split` are
|
||||
two new valid options.
|
||||
|
||||
- Added [taplo](https://taplo.tamasfe.dev/) as the default formatter and lsp for
|
||||
`languages.toml` so we don't default to AI-Slop.
|
||||
|
||||
## Changelog {#sec-release-0-9-changelog}
|
||||
|
||||
[taylrfnt](https://github.com/taylrfnt)
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@
|
|||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) bool enum;
|
||||
inherit (lib.types) enum;
|
||||
inherit (lib.nvim.types) diagnostics mkGrammarOption deprecatedSingleOrListOf;
|
||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||
|
||||
cfg = config.vim.languages.toml;
|
||||
defaultServers = ["tombi"];
|
||||
defaultServers = ["taplo"];
|
||||
servers = {
|
||||
tombi = {
|
||||
enable = true;
|
||||
|
|
@ -27,9 +27,21 @@
|
|||
".git"
|
||||
];
|
||||
};
|
||||
taplo = {
|
||||
enable = true;
|
||||
cmd = [
|
||||
(getExe pkgs.taplo)
|
||||
"lsp"
|
||||
"stdio"
|
||||
];
|
||||
filetypes = ["toml"];
|
||||
root_markers = [
|
||||
".git"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
defaultFormat = ["tombi"];
|
||||
defaultFormat = ["taplo"];
|
||||
formats = {
|
||||
tombi = {
|
||||
command = getExe pkgs.tombi;
|
||||
|
|
@ -40,6 +52,15 @@
|
|||
"-"
|
||||
];
|
||||
};
|
||||
taplo = {
|
||||
command = getExe pkgs.taplo;
|
||||
args = [
|
||||
"format"
|
||||
"--stdin-filepath"
|
||||
"$FILENAME"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
defaultDiagnosticsProvider = ["tombi"];
|
||||
diagnosticsProviders = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue