1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00
dotfiles/.config/helix/languages.toml
2023-11-03 11:13:44 +01:00

60 lines
1.3 KiB
TOML

[language-server.rust-analyzer.config]
check.command = "clippy"
[[language]]
name = "rust"
roots = ["Cargo.toml"]
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'`' = '`'
'<' = '>'
[[language]]
name = "python"
roots = ["pyproject.toml"]
formatter = { command = "ruff", args = ["format", "-q", "-"] }
auto-format = true
[[language]]
name = "markdown"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "md"] }
auto-format = true
[[language]]
name = "json"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "json"] }
auto-format = true
[[language]]
name = "toml"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "toml"] }
auto-format = true
[[language]]
name = "html"
formatter = { command = "djlint", args = ["--reformat", "--quiet", "--configuration", "/home/mo8it/.config/djlintrc.json", "-"] }
auto-format = true
[[language]]
name = "julia"
auto-format = true
[language-server.typescript-language-server]
command = "npx"
args = ["typescript-language-server", "--stdio"]
config.hostInfo = "helix"
[[language]]
name = "javascript"
auto-format = true
[[language]]
name = "typescript"
auto-format = true
[[language]]
name = "haskell"
auto-format = true