Compare commits

...

2 Commits

Author SHA1 Message Date
Kyra
81256273e3
Merge c6e81c37e2 into a219d5aabb 2024-11-20 17:46:10 +00:00
Kyra
c6e81c37e2
Add formatters for Elm, Haskell, Python, and TypeScript
This commit adds `elm-format` for Elm, `ormolu` for Haskell, `black`
for Python, and `biome` for TypeScript, Javascript, TSX, JSX, etc.
2024-11-19 22:18:37 -06:00

View File

@ -732,6 +732,7 @@ shebangs = ["node"]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ]
formatter = { command = "biome", args = ["format"] }
indent = { tab-width = 2, unit = " " }
[language.debugger]
@ -759,6 +760,7 @@ file-types = ["jsx"]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ]
formatter = { command = "biome", args = ["format"] }
indent = { tab-width = 2, unit = " " }
grammar = "javascript"
@ -772,6 +774,7 @@ shebangs = ["deno", "bun", "ts-node"]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ]
formatter = { command = "biome", args = ["format"] }
indent = { tab-width = 2, unit = " " }
[[grammar]]
@ -804,6 +807,7 @@ file-types = ["tsx"]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ]
formatter = { command = "biome", args = ["format"] }
indent = { tab-width = 2, unit = " " }
[[grammar]]
@ -861,6 +865,7 @@ shebangs = ["python"]
roots = ["pyproject.toml", "setup.py", "poetry.lock", "pyrightconfig.json"]
comment-token = "#"
language-servers = ["ruff", "jedi", "pylsp"]
formatter = { command = "black", args = ["-"]}
# TODO: pyls needs utf-8 offsets
indent = { tab-width = 4, unit = " " }
@ -1324,6 +1329,7 @@ roots = ["Setup.hs", "stack.yaml", "cabal.project"]
comment-token = "--"
block-comment-tokens = { start = "{-", end = "-}" }
language-servers = [ "haskell-language-server" ]
formatter = { command = "ormolu" }
indent = { tab-width = 2, unit = " " }
[[grammar]]
@ -1777,6 +1783,7 @@ auto-format = true
comment-token = "--"
block-comment-tokens = { start = "{-", end = "-}" }
language-servers = [ "elm-language-server" ]
formatter = { command = "elm-format", args = ["--stdin"] }
indent = { tab-width = 4, unit = " " }
[[grammar]]
@ -3763,6 +3770,7 @@ language-servers = [
"vscode-eslint-language-server",
"ember-language-server",
]
formatter = { command = "biome", args = ["format"] }
indent = { tab-width = 2, unit = " " }
grammar = "javascript"
@ -3787,6 +3795,7 @@ language-servers = [
"vscode-eslint-language-server",
"ember-language-server",
]
formatter = { command = "biome", args = ["format"] }
indent = { tab-width = 2, unit = " " }
grammar = "typescript"