1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-27 01:01:05 +00:00
dotfiles/.config/helix/languages.toml

58 lines
1.5 KiB
TOML

[[language]]
name = "rust"
language-server = { command = "rust-analyzer", args = ["-q"] }
auto-format = true
roots = ["Cargo.toml"]
[language.config.checkOnSave]
command = "clippy"
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'`' = '`'
'<' = '>'
[[language]]
name = "python"
roots = ["pyproject.toml"]
formatter = { command = "black", args = ["-q", "-"] }
auto-format = true
[[language]]
name = "bash"
formatter = { command = "beautysh", args=["-"] }
auto-format = true
[[language]]
name = "markdown"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "md" ] }
auto-format = true
[[language]]
name = "json"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "json"] }
auto-format = true
[[language]]
name = "javascript"
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "js" ] }
auto-format = true
[[language]]
name = "html"
formatter = { command = "djlint", args = ["--reformat", "--quiet", "--configuration", "/home/mo/.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