feat(helix): improve config
This commit is contained in:
parent
92a6add1dc
commit
09cc1b6c4f
1 changed files with 8 additions and 3 deletions
|
@ -26,7 +26,8 @@ in
|
||||||
name = "javascript";
|
name = "javascript";
|
||||||
language-servers = typescriptLanguageServers;
|
language-servers = typescriptLanguageServers;
|
||||||
# TODO also configure eslint for diagnostics
|
# TODO also configure eslint for diagnostics
|
||||||
# formatter.command = "eslint_d --fix";
|
# formatter.command = ["eslint_d"];
|
||||||
|
# formatter.args = ["--fix"];
|
||||||
formatter = prettier "typescript";
|
formatter = prettier "typescript";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
}
|
}
|
||||||
|
@ -54,7 +55,7 @@ in
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
# `nix fmt` does not support stdin
|
# HINT `nix fmt` is a bit slow
|
||||||
formatter.command = "nixfmt";
|
formatter.command = "nixfmt";
|
||||||
language-servers = [
|
language-servers = [
|
||||||
"nixd"
|
"nixd"
|
||||||
|
@ -69,7 +70,11 @@ in
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "protobuf";
|
name = "protobuf";
|
||||||
formatter.command = "buf format -w";
|
formatter.command = "buf";
|
||||||
|
formatter.args = [
|
||||||
|
"format"
|
||||||
|
"-w"
|
||||||
|
];
|
||||||
language-servers = [
|
language-servers = [
|
||||||
"bufls"
|
"bufls"
|
||||||
"buf-lint"
|
"buf-lint"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue