view dot_config/helix/languages.toml @ 835:768ab9f6fdf0

[pre-commit.ci] pre-commit autoupdate updates: - [github.com/JohnnyMorganz/StyLua: v0.19.1 ? v0.20.0](https://github.com/JohnnyMorganz/StyLua/compare/v0.19.1...v0.20.0) - [github.com/pre-commit/mirrors-prettier: v3.1.0 ? v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8)
author pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
date Mon, 22 Jan 2024 18:02:22 +0000
parents 0fb5efcdd032
children a42419192052
line wrap: on
line source

use-grammars = { except = ["gemini"] }

[language-server.pyright-langserver]
command = "pyright-langserver"
args = ["--stdio"]
config = {}

[language-server.ruff-lsp]
command = "ruff-lsp"

[[language]]
name = "python"
roots = ["pyproject.toml"]
formatter = { command = "black", args = ["--quiet", "-"] }
language-servers = ["ruff-lsp", "pyright-langserver"]

[[grammar]]
name = "tcl"
source = { git = "https://github.com/lewis6991/tree-sitter-tcl", rev = "ac8b94b7a89825ddbdd6f8fc0a81c67c065be851" }

[[language]]
name = "tcl"
scope = "source.tcl"
injection-regex = "tcl"
file-types = ["tcl"]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
roots = []

[[language]]
name = 'gotmpl'
file-types = ["tmpl"]

[[grammar]]
name = "hgrc"
source = { git = "https://github.com/zegervdv/tree-sitter-hgrc.git", rev = "e161daaa84d0883c8b6443e68ff6252c318a8bfb" }

[[language]]
name = "hgrc"
scope = "source.hgrc"
injection-regex = "hgrc"
file-types = ["hgrc", ".hgrc"]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
roots = [".hg"]

[[grammar]]
name = "hg-commit"
source = { git = "https://github.com/zegervdv/tree-sitter-hg-commit.git", rev = "36cb1ed63f69b4a0d21d1ea1c25862d9ef812ea8" }

[[language]]
name = "hg-commit"
scope = "source.hg-commit"
injection-regex = "hgrc"
file-types = [{ suffix = "commit.hg.txt" }]
comment-token = "HG:"
indent = { tab-width = 2, unit = " " }
roots = [".hg"]