annotate dot_config/helix/languages.toml @ 825:6c169d906c7d

feat: enable highlighting for chezmoi .tmpl files
author zegervdv <zegervdv@me.com>
date Thu, 21 Dec 2023 11:47:51 +0100
parents 6499aba0eaf3
children b2e6175efcad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
810
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
1 use-grammars = { except = ["gemini"] }
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
2
804
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
3 [language-server.pyright-langserver]
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
4 command = "pyright-langserver"
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
5 args = ["--stdio"]
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
6 config = {}
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
7
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
8 [language-server.ruff-lsp]
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
9 command = "ruff-lsp"
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
10
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
11 [[language]]
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
12 name = "python"
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
13 roots = ["pyproject.toml"]
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
14 formatter = { command = "black", args = ["--quiet", "-"] }
72828b1204a3 feat: add helix config
zegervdv <zegervdv@me.com>
parents:
diff changeset
15 language-servers = ["ruff-lsp", "pyright-langserver"]
810
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
16
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
17 [[grammar]]
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
18 name = "tcl"
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
19 source = { git = "https://github.com/lewis6991/tree-sitter-tcl", rev = "ac8b94b7a89825ddbdd6f8fc0a81c67c065be851" }
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
20
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
21 [[language]]
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
22 name = "tcl"
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
23 scope = "source.tcl"
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
24 injection-regex = "tcl"
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
25 file-types = ["tcl"]
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
26 comment-token = "#"
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
27 indent = { tab-width = 2, unit = " " }
6499aba0eaf3 feat: setup helix and languageservers
zegervdv <zegervdv@me.com>
parents: 804
diff changeset
28 roots = []
825
6c169d906c7d feat: enable highlighting for chezmoi .tmpl files
zegervdv <zegervdv@me.com>
parents: 810
diff changeset
29
6c169d906c7d feat: enable highlighting for chezmoi .tmpl files
zegervdv <zegervdv@me.com>
parents: 810
diff changeset
30 [[language]]
6c169d906c7d feat: enable highlighting for chezmoi .tmpl files
zegervdv <zegervdv@me.com>
parents: 810
diff changeset
31 name = 'gotmpl'
6c169d906c7d feat: enable highlighting for chezmoi .tmpl files
zegervdv <zegervdv@me.com>
parents: 810
diff changeset
32 file-types = ["tmpl"]