on 2158366 help sign in
helix/languages.toml
263 lines 5.7 kB history raw
1[[language]]
2name = "rust"
3scope = "source.rust"
4injection-regex = "rust"
5file-types = ["rs"]
6roots = []
7auto-format = true
8comment-token = "//"
9config = """
11 "cargo": {
12 "loadOutDirsFromCheck": true
13 },
14 "procMacro": {
15 "enable": false
16 }
18"""
20language-server = { command = "rust-analyzer" }
21indent = { tab-width = 4, unit = " " }
22debug-adapter = { name = "lldb", transport = "tcp", command = "lldb-vscode", args = [], port-arg = "-p {}" }
24[[language.debug-configs]]
25console = "internalConsole"
26program = "target/debug/rustdebug"
28[[language]]
29name = "toml"
30scope = "source.toml"
31injection-regex = "toml"
32file-types = ["toml"]
33roots = []
34comment-token = "#"
36indent = { tab-width = 2, unit = " " }
38[[language]]
39name = "protobuf"
40scope = "source.proto"
41injection-regex = "protobuf"
42file-types = ["proto"]
43roots = []
44comment-token = "//"
46indent = { tab-width = 2, unit = " " }
48[[language]]
49name = "elixir"
50scope = "source.elixir"
51injection-regex = "elixir"
52file-types = ["ex", "exs"]
53roots = []
54comment-token = "#"
56indent = { tab-width = 2, unit = " " }
58[[language]]
59name = "json"
60scope = "source.json"
61injection-regex = "json"
62file-types = ["json"]
63roots = []
65indent = { tab-width = 2, unit = " " }
67[[language]]
68name = "c"
69scope = "source.c"
70injection-regex = "c"
71file-types = ["c"] # TODO: ["h"]
72roots = []
73comment-token = "//"
75language-server = { command = "clangd" }
76indent = { tab-width = 2, unit = " " }
77debug-adapter = { name = "lldb", transport = "tcp", command = "lldb-vscode", args = [], port-arg = "-p {}" }
79[[language.debug-configs]]
80console = "internalConsole"
81program = "main"
83[[language]]
84name = "cpp"
85scope = "source.cpp"
86injection-regex = "cpp"
87file-types = ["cc", "hh", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino"]
88roots = []
89comment-token = "//"
91language-server = { command = "clangd" }
92indent = { tab-width = 2, unit = " " }
93debug-adapter = { name = "lldb", transport = "tcp", command = "lldb-vscode", args = [], port-arg = "-p {}" }
95[[language.debug-configs]]
96console = "internalConsole"
97program = "main"
99[[language]]
100name = "go"
101scope = "source.go"
102injection-regex = "go"
103file-types = ["go"]
104roots = ["Gopkg.toml", "go.mod"]
105auto-format = true
106comment-token = "//"
108language-server = { command = "gopls" }
109# TODO: gopls needs utf-8 offsets?
110indent = { tab-width = 4, unit = "\t" }
111debug-adapter = { name = "go", transport = "tcp", command = "dlv", args = ["dap"], port-arg = "-l 127.0.0.1:{}" }
113[[language.debug-configs]]
114mode = "debug"
115program = "main.go"
117[[language.debug-configs]]
118mode = "exec"
119program = "main"
121[[language.debug-configs]]
122mode = "test"
123program = "."
125[[language]]
126name = "javascript"
127scope = "source.js"
128injection-regex = "^(js|javascript)$"
129file-types = ["js", "mjs"]
130roots = []
131comment-token = "//"
132# TODO: highlights-jsx, highlights-params
134indent = { tab-width = 2, unit = " " }
136[[language]]
137name = "typescript"
138scope = "source.ts"
139injection-regex = "^(ts|typescript)$"
140file-types = ["ts"]
141roots = []
142# TODO: highlights-jsx, highlights-params
144language-server = { command = "typescript-language-server", args = ["--stdio"] }
145indent = { tab-width = 2, unit = " " }
147[[language]]
148name = "css"
149scope = "source.css"
150injection-regex = "css"
151file-types = ["css"]
152roots = []
154indent = { tab-width = 2, unit = " " }
156[[language]]
157name = "html"
158scope = "text.html.basic"
159injection-regex = "html"
160file-types = ["html"]
161roots = []
163indent = { tab-width = 2, unit = " " }
165[[language]]
166name = "python"
167scope = "source.python"
168injection-regex = "python"
169file-types = ["py"]
170roots = []
171comment-token = "#"
173language-server = { command = "pyls" }
174# TODO: pyls needs utf-8 offsets
175indent = { tab-width = 4, unit = " " }
177[[language]]
178name = "nix"
179scope = "source.nix"
180injection-regex = "nix"
181file-types = ["nix"]
182roots = []
183comment-token = "#"
185indent = { tab-width = 2, unit = " " }
187[[language]]
188name = "ruby"
189scope = "source.ruby"
190injection-regex = "ruby"
191file-types = ["rb"]
192roots = []
193comment-token = "#"
195language-server = { command = "solargraph", args = ["stdio"] }
196indent = { tab-width = 2, unit = " " }
198[[language]]
199name = "bash"
200scope = "source.bash"
201injection-regex = "bash"
202file-types = ["sh", "bash"]
203roots = []
204comment-token = "#"
206language-server = { command = "bash-language-server", args = ["start"] }
207indent = { tab-width = 2, unit = " " }
209[[language]]
210name = "php"
211scope = "source.php"
212injection-regex = "php"
213file-types = ["php"]
214roots = []
216indent = { tab-width = 2, unit = " " }
218[[language]]
219name = "latex"
220scope = "source.tex"
221injection-regex = "tex"
222file-types = ["tex"]
223roots = []
224comment-token = "%"
226indent = { tab-width = 4, unit = "\t" }
228[[language]]
229name = "julia"
230scope = "source.julia"
231injection-regex = "julia"
232file-types = ["jl"]
233roots = []
234comment-token = "#"
235language-server = { command = "julia", args = [ "--startup-file=no", "--history-file=no", "-e", "using LanguageServer;using Pkg;import StaticLint;import SymbolServer;env_path = dirname(Pkg.Types.Context().env.project_file);server = LanguageServer.LanguageServerInstance(stdin, stdout, env_path, \"\");server.runlinter = true;run(server);" ] }
236indent = { tab-width = 2, unit = " " }
238[[language]]
239name = "java"
240scope = "source.java"
241injection-regex = "java"
242file-types = ["java"]
243roots = []
244indent = { tab-width = 4, unit = " " }
246[[language]]
247name = "ledger"
248scope = "source.ledger"
249injection-regex = "ledger"
250file-types = ["ldg", "ledger", "journal"]
251roots = []
252comment-token = ";"
253indent = { tab-width = 4, unit = " " }
255# [[language]]
256# name = "haskell"
257# scope = "source.haskell"
258# injection-regex = "haskell"
259# file-types = ["hs"]
260# roots = []
261# comment-token = "--"
263# indent = { tab-width = 2, unit = " " }