mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-05 18:40:53 +00:00
languages/ts: formatter fix and extra biomejs
This commit is contained in:
parent
4f1074084e
commit
1aeb2d6dc0
2 changed files with 24 additions and 1 deletions
|
|
@ -249,6 +249,13 @@
|
|||
- Added [`tsgo`](https://github.com/microsoft/typescript-go) as an LSP to
|
||||
`languages.ts`.
|
||||
|
||||
- Fix `languages.ts` registration of formatters.
|
||||
|
||||
- Added `biome-check` and `biome-organize-imports` formatters to `languages.ts`.
|
||||
|
||||
- Added [`biomejs`](https://biomejs.dev/) as extra diagnostics provider to
|
||||
`languages.ts`.
|
||||
|
||||
- Add `languages.fluent` using the official plugin. This only provides
|
||||
highlighting.
|
||||
|
||||
|
|
|
|||
|
|
@ -191,6 +191,14 @@
|
|||
biome = {
|
||||
command = getExe pkgs.biome;
|
||||
};
|
||||
|
||||
biome-check = {
|
||||
command = getExe pkgs.biome;
|
||||
};
|
||||
|
||||
biome-organize-imports = {
|
||||
command = getExe pkgs.biome;
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: specify packages
|
||||
|
|
@ -213,6 +221,14 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
biomejs = let
|
||||
pkg = pkgs.biome;
|
||||
in {
|
||||
package = pkg;
|
||||
config = {
|
||||
cmd = getExe pkg;
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
_file = ./ts.nix;
|
||||
|
|
@ -326,7 +342,7 @@ in {
|
|||
# .tsx/.jsx files
|
||||
typescriptreact = cfg.format.type;
|
||||
};
|
||||
setupOpts.formatters =
|
||||
formatters =
|
||||
mapListToAttrs (name: {
|
||||
inherit name;
|
||||
value = formats.${name};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue