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-10-23 17:06:48 +02:00

57 lines
1.5 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 = "black", args = ["-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 = "javascript"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "js"] }
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-server = { language-id = "html", command = "tailwindcss-language-server", args = ["--stdio"] }
# roots = ["tailwind.config.js"]
# config = {}
# [[language]]
# name = "css"
# language-server = { language-id = "css", command = "tailwindcss-language-server", args = ["--stdio"] }
# roots = ["tailwind.config.js"]
# config = {}
[[language]]
name = "julia"
auto-format = true