Compare commits

..

No commits in common. "c07410f1838ce6a44708c49b8ed6fb061babc5ac" and "ace53a0ceea8bd5eb7325f63389ea4f28525db0c" have entirely different histories.

2 changed files with 3 additions and 27 deletions

View file

@ -45,9 +45,6 @@
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)

View file

@ -8,12 +8,12 @@
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf mkMerge;
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) enum;
inherit (lib.types) bool enum;
inherit (lib.nvim.types) diagnostics mkGrammarOption deprecatedSingleOrListOf;
inherit (lib.nvim.attrsets) mapListToAttrs;
cfg = config.vim.languages.toml;
defaultServers = ["taplo"];
defaultServers = ["tombi"];
servers = {
tombi = {
enable = true;
@ -27,21 +27,9 @@
".git"
];
};
taplo = {
enable = true;
cmd = [
(getExe pkgs.taplo)
"lsp"
"stdio"
];
filetypes = ["toml"];
root_markers = [
".git"
];
};
};
defaultFormat = ["taplo"];
defaultFormat = ["tombi"];
formats = {
tombi = {
command = getExe pkgs.tombi;
@ -52,15 +40,6 @@
"-"
];
};
taplo = {
command = getExe pkgs.taplo;
args = [
"format"
"--stdin-filepath"
"$FILENAME"
"-"
];
};
};
defaultDiagnosticsProvider = ["tombi"];
diagnosticsProviders = {