@@ -5,6 +5,17 @@ injection-regex = "rust"
55file-types = ["rs"]
66roots = []
77auto-format = true
8+comment_token = "//"
9+config = """
10+{
11+ "cargo": {
12+ "loadOutDirsFromCheck": true
13+ },
14+ "procMacro": {
15+ "enable": false
16+ }
17+}
18+"""
819
920language-server = { command = "rust-analyzer" }
1021indent = { tab-width = 4, unit = " " }
@@ -15,6 +26,7 @@ scope = "source.toml"
1526injection-regex = "toml"
1627file-types = ["toml"]
1728roots = []
29+comment_token = "#"
1830
1931indent = { tab-width = 2, unit = " " }
2032
@@ -42,6 +54,7 @@ scope = "source.c"
4254injection-regex = "c"
4355file-types = ["c"] # TODO: ["h"]
4456roots = []
57+comment_token = "//"
4558
4659language-server = { command = "clangd" }
4760indent = { tab-width = 2, unit = " " }
@@ -52,6 +65,7 @@ scope = "source.cpp"
5265injection-regex = "cpp"
5366file-types = ["cc", "cpp", "hpp", "h"]
5467roots = []
68+comment_token = "//"
5569
5670language-server = { command = "clangd" }
5771indent = { tab-width = 2, unit = " " }
@@ -63,6 +77,7 @@ injection-regex = "go"
6377file-types = ["go"]
6478roots = ["Gopkg.toml", "go.mod"]
6579auto-format = true
80+comment_token = "//"
6681
6782language-server = { command = "gopls" }
6883# TODO: gopls needs utf-8 offsets?
@@ -74,6 +89,7 @@ scope = "source.js"
7489injection-regex = "^(js|javascript)$"
7590file-types = ["js"]
7691roots = []
92+comment_token = "//"
7793# TODO: highlights-jsx, highlights-params
7894
7995indent = { tab-width = 2, unit = " " }
@@ -113,6 +129,7 @@ scope = "source.python"
113129injection-regex = "python"
114130file-types = ["py"]
115131roots = []
132+comment_token = "#"
116133
117134language-server = { command = "pyls" }
118135# TODO: pyls needs utf-8 offsets
@@ -133,6 +150,7 @@ scope = "source.ruby"
133150injection-regex = "ruby"
134151file-types = ["rb"]
135152roots = []
153+comment_token = "#"
136154
137155language-server = { command = "solargraph", args = ["stdio"] }
138156indent = { tab-width = 2, unit = " " }
@@ -143,6 +161,7 @@ scope = "source.bash"
143161injection-regex = "bash"
144162file-types = ["sh", "bash"]
145163roots = []
164+comment_token = "#"
146165
147166language-server = { command = "bash-language-server", args = ["start"] }
148167indent = { tab-width = 2, unit = " " }
@@ -162,6 +181,7 @@ scope = "source.tex"
162181injection-regex = "tex"
163182file-types = ["tex"]
164183roots = []
184+comment_token = "%"
165185
166186indent = { tab-width = 4, unit = "\t" }
167187
@@ -171,6 +191,7 @@ scope = "source.julia"
171191injection-regex = "julia"
172192file-types = ["jl"]
173193roots = []
194+comment_token = "#"
174195language-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);" ] }
175196indent = { tab-width = 2, unit = " " }
176197
@@ -180,5 +201,6 @@ indent = { tab-width = 2, unit = " " }
180201# injection-regex = "haskell"
181202# file-types = ["hs"]
182203# roots = []
204+# comment_token = "--"
183205#
184206# indent = { tab-width = 2, unit = " " }