on febee2d help sign in
helix/languages.toml
423 lines 8.8 kB history raw
1[[language]]
2name = "rust"
3scope = "source.rust"
4injection-regex = "rust"
5file-types = ["rs"]
6roots = []
7auto-format = true
8comment-token = "//"
9language-server = { command = "rust-analyzer" }
10indent = { tab-width = 4, unit = " " }
11[language.config]
12cargo = { loadOutDirsFromCheck = true }
13procMacro = { enable = false }
15[[language]]
16name = "toml"
17scope = "source.toml"
18injection-regex = "toml"
19file-types = ["toml"]
20roots = []
21comment-token = "#"
23indent = { tab-width = 2, unit = " " }
25[[language]]
26name = "protobuf"
27scope = "source.proto"
28injection-regex = "protobuf"
29file-types = ["proto"]
30roots = []
31comment-token = "//"
33indent = { tab-width = 2, unit = " " }
35[[language]]
36name = "elixir"
37scope = "source.elixir"
38injection-regex = "elixir"
39file-types = ["ex", "exs"]
40shebangs = ["elixir"]
41roots = []
42comment-token = "#"
44language-server = { command = "elixir-ls" }
45indent = { tab-width = 2, unit = " " }
47[[language]]
48name = "mint"
49scope = "source.mint"
50injection-regex = "mint"
51file-types = ["mint"]
52shebangs = []
53roots = []
54comment-token = "//"
56language-server = { command = "mint", args = ["ls"] }
57indent = { tab-width = 2, unit = " " }
59[[language]]
60name = "json"
61scope = "source.json"
62injection-regex = "json"
63file-types = ["json"]
64roots = []
66indent = { tab-width = 2, unit = " " }
68[[language]]
69name = "c"
70scope = "source.c"
71injection-regex = "c"
72file-types = ["c"] # TODO: ["h"]
73roots = []
74comment-token = "//"
76language-server = { command = "clangd" }
77indent = { tab-width = 2, unit = " " }
79[[language]]
80name = "cpp"
81scope = "source.cpp"
82injection-regex = "cpp"
83file-types = ["cc", "hh", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino"]
84roots = []
85comment-token = "//"
87language-server = { command = "clangd" }
88indent = { tab-width = 2, unit = " " }
90[[language]]
91name = "c-sharp"
92scope = "source.csharp"
93injection-regex = "c-?sharp"
94file-types = ["cs"]
95roots = []
96comment-token = "//"
98indent = { tab-width = 4, unit = "\t" }
100[[language]]
101name = "go"
102scope = "source.go"
103injection-regex = "go"
104file-types = ["go"]
105roots = ["Gopkg.toml", "go.mod"]
106auto-format = true
107comment-token = "//"
109language-server = { command = "gopls" }
110# TODO: gopls needs utf-8 offsets?
111indent = { tab-width = 4, unit = "\t" }
113[[language]]
114name = "javascript"
115scope = "source.js"
116injection-regex = "^(js|javascript)$"
117file-types = ["js", "mjs"]
118shebangs = ["node"]
119roots = []
120comment-token = "//"
121# TODO: highlights-jsx, highlights-params
123indent = { tab-width = 2, unit = " " }
125[[language]]
126name = "typescript"
127scope = "source.ts"
128injection-regex = "^(ts|typescript)$"
129file-types = ["ts"]
130shebangs = []
131roots = []
132# TODO: highlights-jsx, highlights-params
134language-server = { command = "typescript-language-server", args = ["--stdio"] }
135indent = { tab-width = 2, unit = " " }
137[[language]]
138name = "tsx"
139scope = "source.tsx"
140injection-regex = "^(tsx)$" # |typescript
141file-types = ["tsx"]
142roots = []
143# TODO: highlights-jsx, highlights-params
145language-server = { command = "typescript-language-server", args = ["--stdio"] }
146indent = { tab-width = 2, unit = " " }
148[[language]]
149name = "css"
150scope = "source.css"
151injection-regex = "css"
152file-types = ["css"]
153roots = []
155indent = { tab-width = 2, unit = " " }
157[[language]]
158name = "html"
159scope = "text.html.basic"
160injection-regex = "html"
161file-types = ["html"]
162roots = []
164indent = { tab-width = 2, unit = " " }
166[[language]]
167name = "python"
168scope = "source.python"
169injection-regex = "python"
170file-types = ["py"]
171shebangs = ["python"]
172roots = []
173comment-token = "#"
175language-server = { command = "pylsp" }
176# TODO: pyls needs utf-8 offsets
177indent = { tab-width = 4, unit = " " }
179[[language]]
180name = "nix"
181scope = "source.nix"
182injection-regex = "nix"
183file-types = ["nix"]
184shebangs = []
185roots = []
186comment-token = "#"
188language-server = { command = "rnix-lsp" }
189indent = { tab-width = 2, unit = " " }
191[[language]]
192name = "ruby"
193scope = "source.ruby"
194injection-regex = "ruby"
195file-types = ["rb"]
196shebangs = ["ruby"]
197roots = []
198comment-token = "#"
200language-server = { command = "solargraph", args = ["stdio"] }
201indent = { tab-width = 2, unit = " " }
203[[language]]
204name = "bash"
205scope = "source.bash"
206injection-regex = "bash"
207file-types = ["sh", "bash"]
208shebangs = ["sh", "bash", "dash"]
209roots = []
210comment-token = "#"
212language-server = { command = "bash-language-server", args = ["start"] }
213indent = { tab-width = 2, unit = " " }
215[[language]]
216name = "php"
217scope = "source.php"
218injection-regex = "php"
219file-types = ["php"]
220shebangs = ["php"]
221roots = []
223indent = { tab-width = 4, unit = " " }
225[[language]]
226name = "latex"
227scope = "source.tex"
228injection-regex = "tex"
229file-types = ["tex"]
230roots = []
231comment-token = "%"
233indent = { tab-width = 4, unit = "\t" }
235[[language]]
236name = "julia"
237scope = "source.julia"
238injection-regex = "julia"
239file-types = ["jl"]
240roots = []
241comment-token = "#"
242language-server = { command = "julia", args = [
243 "--startup-file=no",
244 "--history-file=no",
245 "--quiet",
246 "-e",
247 """
248 using LanguageServer;
249 using Pkg;
250 import StaticLint;
251 env_path = dirname(Pkg.Types.Context().env.project_file);
253 server = LanguageServer.LanguageServerInstance(stdin, stdout, env_path, "");
254 server.runlinter = true;
255 run(server);
256 """,
257 ] }
258indent = { tab-width = 2, unit = " " }
260[[language]]
261name = "java"
262scope = "source.java"
263injection-regex = "java"
264file-types = ["java"]
265roots = []
266indent = { tab-width = 4, unit = " " }
268[[language]]
269name = "ledger"
270scope = "source.ledger"
271injection-regex = "ledger"
272file-types = ["ldg", "ledger", "journal"]
273roots = []
274comment-token = ";"
275indent = { tab-width = 4, unit = " " }
277[[language]]
278name = "ocaml"
279scope = "source.ocaml"
280injection-regex = "ocaml"
281file-types = ["ml"]
282shebangs = []
283roots = []
284comment-token = "(**)"
285indent = { tab-width = 2, unit = " " }
287[[language]]
288name = "ocaml-interface"
289scope = "source.ocaml.interface"
290file-types = ["mli"]
291shebangs = []
292roots = []
293comment-token = "(**)"
294indent = { tab-width = 2, unit = " "}
296[[language]]
297name = "lua"
298scope = "source.lua"
299file-types = ["lua"]
300shebangs = ["lua"]
301roots = []
302comment-token = "--"
303indent = { tab-width = 2, unit = " " }
305[[language]]
306name = "svelte"
307scope = "source.svelte"
308injection-regex = "svelte"
309file-types = ["svelte"]
310roots = []
311indent = { tab-width = 2, unit = " " }
312language-server = { command = "svelteserver", args = ["--stdio"] }
315[[language]]
316name = "vue"
317scope = "source.vue"
318injection-regex = "vue"
319file-types = ["vue"]
320roots = []
321indent = { tab-width = 2, unit = " " }
323[[language]]
324name = "yaml"
325scope = "source.yaml"
326file-types = ["yml", "yaml"]
327roots = []
328comment-token = "#"
329indent = { tab-width = 2, unit = " " }
331# [[language]]
332# name = "haskell"
333# scope = "source.haskell"
334# injection-regex = "haskell"
335# file-types = ["hs"]
336# roots = []
337# comment-token = "--"
339# indent = { tab-width = 2, unit = " " }
341[[language]]
342name = "zig"
343scope = "source.zig"
344injection-regex = "zig"
345file-types = ["zig"]
346roots = ["build.zig"]
347auto-format = true
348comment-token = "//"
350language-server = { command = "zls" }
351indent = { tab-width = 4, unit = " " }
353[[language]]
354name = "prolog"
355scope = "source.prolog"
356roots = []
357file-types = ["pl", "prolog"]
358shebangs = ["swipl"]
359comment-token = "%"
361language-server = { command = "swipl", args = [
362 "-g", "use_module(library(lsp_server))",
363 "-g", "lsp_server:main",
364 "-t", "halt", "--", "stdio"] }
366[[language]]
367name = "tsq"
368scope = "source.tsq"
369file-types = ["scm"]
370roots = []
371comment-token = ";"
372indent = { tab-width = 2, unit = " " }
374[[language]]
375name = "cmake"
376scope = "source.cmake"
377file-types = ["cmake", "CMakeLists.txt"]
378roots = []
379comment-token = "#"
380indent = { tab-width = 2, unit = " " }
381language-server = { command = "cmake-language-server" }
383[[language]]
384name = "glsl"
385scope = "source.glsl"
386file-types = ["glsl", "vert", "tesc", "tese", "geom", "frag", "comp" ]
387roots = []
388comment-token = "//"
389indent = { tab-width = 4, unit = " " }
391[[language]]
392name = "perl"
393scope = "source.perl"
394file-types = ["pl", "pm"]
395shebangs = ["perl"]
396roots = []
397comment-token = "#"
398indent = { tab-width = 2, unit = " " }
400[[language]]
401name = "racket"
402scope = "source.rkt"
403roots = []
404file-types = ["rkt"]
405shebangs = ["racket"]
406comment-token = ";"
407language-server = { command = "racket", args = ["-l", "racket-langserver"] }
409[[language]]
410name = "wgsl"
411scope = "source.wgsl"
412file-types = ["wgsl"]
413roots = []
414comment-token = "//"
415indent = { tab-width = 4, unit = " " }
417[[language]]
418name = "llvm"
419scope = "source.llvm"
420roots = []
421file-types = ["ll"]
422comment-token = ";"
423indent = { tab-width = 2, unit = " " }