home/tui/helix/languages.toml
2024-04-22 17:42:07 +02:00

59 lines
1.2 KiB
TOML

use-grammars = { only = [ "typst" ] }
[[language]]
name = "nasm"
comment-token = "; #"
file-types = [ "s", "asm", "inc", "test" ]
indent = { tab-width = 8, unit = " " }
auto-format = true
formatter = { command = "git", args = [ "stripspace" ] }
[language-server.typst]
command = "typst-lsp"
[[language]]
name = "typst"
scope = "source.typst"
file-types = ["typst", "typ"]
indent = { tab-width = 2, unit = " " }
comment-token = "//"
injection-regex = "typ(st)?"
roots = ["typst.toml"]
auto-format = true
formatter = { command = "git", args = [ "stripspace" ] }
language-servers = [ { name = "typst" } ]
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'$' = '$'
'"' = '"'
[[grammar]]
name = "typst"
source.git = "https://github.com/uben0/tree-sitter-typst"
source.rev = "master"
# Strip-space.
[[language]]
name = "toml"
formatter = { command = "git", args = [ "stripspace" ] }
auto-format = true
[[language]]
name = "fish"
formatter = { command = "git", args = [ "stripspace" ] }
auto-format = true
[[language]]
name = "markdown"
formatter = { command = "git", args = [ "stripspace" ] }
auto-format = true
[[language]]
name = "nix"
formatter = { command = "nixfmt" }
auto-format = true