Skip to content

Commit bc52e25

Browse files
committed
Taplo workaround. ESLint await
- tamasfe/taplo#580 (comment) - helix-editor/helix#11315
1 parent c74bea6 commit bc52e25

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.config/helix/languages.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
[[language]]
22
name = "toml"
3+
# https://github.com/tamasfe/taplo/issues/580#issuecomment-2004174721
4+
roots = ["."]
35
formatter = { command = "taplo", args = ["fmt", "-"] }
46
auto-format = true
57

68
[[language]]
79
name = "json"
810
indent = { tab-width = 3, unit = "\t" }
11+
# I don't like redundant indent
912
auto-format = false
1013

1114
[language-server.vscode-json-language-server.config]
@@ -15,13 +18,24 @@ validate.enable = true
1518
format.enable = true
1619
keepLines.enable = true
1720

21+
# why no ESL config?
22+
# https://github.com/helix-editor/helix/pull/11315
23+
1824
[[language]]
1925
name = "javascript"
26+
language-servers = [
27+
"typescript-language-server",
28+
"vscode-eslint-language-server",
29+
]
2030
indent = { tab-width = 4, unit = "\t" }
2131
auto-format = true
2232

2333
[[language]]
2434
name = "typescript"
35+
language-servers = [
36+
"typescript-language-server",
37+
"vscode-eslint-language-server",
38+
]
2539
indent = { tab-width = 4, unit = "\t" }
2640
auto-format = true
2741

@@ -55,7 +69,7 @@ name = "bash" # um, actually 🤓,
5569
# the version of POSIX-sh which is widely used today is often called "Bash",
5670
# and many of its users are not aware that it is basically the POSIX-sh.
5771
#
58-
# There really is a Bash, and some people are using it,
72+
# There really is a Bash, and most people are using it,
5973
# but it is just one shell among many.
6074
indent = { tab-width = 4, unit = "\t" }
6175

0 commit comments

Comments
 (0)