-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlanguages.toml
308 lines (274 loc) · 13.3 KB
/
languages.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
[language-server]
basedpyright = { command = "basedpyright-langserver", args = ["--stdio"], config = {} }
taplo = { command = "taplo", args = ["lsp", "stdio"] }
bash-language-server = { command = "bash-language-server", args = ["start"] }
vscode-json-language-server = { command = "vscode-json-language-server", args = ["--stdio"], config = { provideFormatter = true, json = { validate = { enable = true } } } }
jdtls = { command = "jdtls" }
dart = { command = "dart", args = ["language-server", "--client-id=emacs.lsp-copilot"] }
clangd = { command = "clangd" }
[language-server.css-ls]
command = "vscode-css-language-server"
args = ["--stdio"]
[language-server.css-ls.config.css]
hover = {documentation = true, references = true}
"lint" = {"compatibleVendorPrefixes" = "ignore", "vendorPrefix" = "warning", "duplicateProperties" = "ignore", "emptyRules" = "warning", "importStatement" = "ignore", "boxModel" = "ignore", "universalSelector" = "ignore", "zeroUnits" = "ignore", "fontFaceProperties" = "warning", "hexColorLength" = "error", "argumentsInColorFunction" = "error", "unknownProperties" = "warning", "validProperties" = [], "ieHack" = "ignore", "unknownVendorSpecificProperties" = "ignore", "propertyIgnoredDueToDisplay" = "warning", "important" = "ignore", "float" = "ignore", "idSelector" = "ignore", "unknownAtRules" = "warning"}
"trace" = {"server" = "off"}
"format" = {"enable" = true, "newlineBetweenSelectors" = true, "newlineBetweenRules" = true, "spaceAroundSelectorSeparator" = false, "braceStyle" = "collapse", "preserveNewLines" = true, "maxPreserveNewLines" = ""}
customData = []
completion = { "triggerPropertyValueCompletion" = true, "completePropertyWithSemicolon" = true }
validate = true
[language-server.css-ls.config.less]
"completion" = {"triggerPropertyValueCompletion" = true}
"validate" = true
"hover" = {"documentation" = true}
"lint" = {"compatibleVendorPrefixes" = "ignore", "vendorPrefix" = "warning", "duplicateProperties" = "ignore", "emptyRules" = "warning", "importStatement" = "ignore", "boxModel" = "ignore", "universalSelector" = "ignore", "zeroUnits" = "ignore", "fontFaceProperties" = "warning", "hexColorLength" = "error", "argumentsInColorFunction" = "error", "unknownProperties" = "warning", "validProperties" = [], "ieHack" = "ignore", "unknownVendorSpecificProperties" = "ignore", "propertyIgnoredDueToDisplay" = "warning", "important" = "ignore", "float" = "ignore", "idSelector" = "ignore"}
"format" = {"enable" = true, "newlineBetweenSelectors" = true, "newlineBetweenRules" = true, "spaceAroundSelectorSeparator" = false, "braceStyle" = "collapse", "preserveNewLines" = true, "maxPreserveNewLines" = ""}
"completePropertyWithSemicolon" = true
"references" = true
"unknownAtRules" = "warning"
[language-server.css-ls.config.scss]
"completion" = {"triggerPropertyValueCompletion" = true}
"validate" = true
"hover" = {"documentation" = true}
"lint" = {"compatibleVendorPrefixes" = "ignore", "vendorPrefix" = "warning", "duplicateProperties" = "ignore", "emptyRules" = "warning", "importStatement" = "ignore", "boxModel" = "ignore", "universalSelector" = "ignore", "zeroUnits" = "ignore", "fontFaceProperties" = "warning", "hexColorLength" = "error", "argumentsInColorFunction" = "error", "unknownProperties" = "warning", "validProperties" = [], "ieHack" = "ignore", "unknownVendorSpecificProperties" = "ignore", "propertyIgnoredDueToDisplay" = "warning", "important" = "ignore", "float" = "ignore", "idSelector" = "ignore"}
"format" = {"enable" = true, "newlineBetweenSelectors" = true, "newlineBetweenRules" = true, "spaceAroundSelectorSeparator" = false, "braceStyle" = "collapse", "preserveNewLines" = true, "maxPreserveNewLines" = ""}
"completePropertyWithSemicolon" = true
"references" = true
"unknownAtRules" = "warning"
[language-server.tailwindcss-ls]
command = "tailwindcss-language-server"
args = ["--stdio"]
[language-server.tailwindcss-ls.config.editor]
userLanguages = { eelixir = "html-eex", eruby = "erb" }
[language-server.tailwindcss-ls.config.tailwindCSS]
emmetCompletions = false
showPixelEquivalents = true
rootFontSize = 16
validate = true
hovers = true
suggestions = true
codeActions = true
lint = { invalidScreen = "error", invalidVariant = "error", invalidTailwindDirective = "error", invalidApply = "error", invalidConfigPath = "error", cssConflict = "warning", recommendedVariantOrder = "warning" }
experimental = { classRegex = '' }
classAttributes = ['class', 'className', 'ngClass']
[language-server.vtsls]
command = "vtsls"
args = ["--stdio"]
[language-server.vtsls.config.typescript]
tsserver = { log = "off", maxTsServerMemory = 3072 }
suggest = { completeFunctionCalls = true }
format = { enable = false }
[language-server.vtsls.config.javascript]
suggest = { completeFunctionCalls = true }
format = { enable = false }
[language-server.typescript-language-server]
command = "typescript-language-server"
args = ["--stdio"]
config.hostInfo = "Emacs"
config.tsserver.logVerbosity = "off"
config.maxTsServerMemory = 3072
config.preferences = { includePackageJsonAutoImports = "auto", includeAutomaticOptionalChainCompletions = true }
[language-server.typescript-language-server.config.javascript]
implementationsCodeLens = { enabled = false }
referencesCodeLens = { enabled = false }
format = { enable = false, insertSpaceAfterCommaDelimiter = true, insertSpaceAfterConstructor = false, insertSpaceAfterFunctionKeywordForAnonymousFunctions = true, insertSpaceAfterKeywordsInControlFlowStatements = true, insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces = false, insertSpaceAfterOpeningAndBeforeClosingEmptyBraces = false, insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces = true, insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets = false, insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis = false, insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces = false, insertSpaceAfterSemicolonInForStatements = true, insertSpaceAfterTypeAssertion = false, insertSpaceBeforeAndAfterBinaryOperators = true, insertSpaceBeforeFunctionParenthesis = false, placeOpenBraceOnNewLineForControlBlocks = false, placeOpenBraceOnNewLineForFunctions = false }
inlayHints = { includeInlayEnumMemberValueHints = true, includeInlayFunctionLikeReturnTypeHints = true, includeInlayFunctionParameterTypeHints = true, includeInlayParameterNameHints = "none", includeInlayParameterNameHintsWhenArgumentMatchesName = true, includeInlayPropertyDeclarationTypeHints = true, includeInlayVariableTypeHints = true }
[language-server.typescript-language-server.config.typescript]
implementationsCodeLens = { enabled = false }
referencesCodeLens = { enabled = false }
format = { enable = false, insertSpaceAfterCommaDelimiter = true, insertSpaceAfterConstructor = false, insertSpaceAfterFunctionKeywordForAnonymousFunctions = true, insertSpaceAfterKeywordsInControlFlowStatements = true, insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces = false, insertSpaceAfterOpeningAndBeforeClosingEmptyBraces = false, insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces = true, insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets = false, insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis = false, insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces = false, insertSpaceAfterSemicolonInForStatements = true, insertSpaceAfterTypeAssertion = false, insertSpaceBeforeAndAfterBinaryOperators = true, insertSpaceBeforeFunctionParenthesis = false, placeOpenBraceOnNewLineForControlBlocks = false, placeOpenBraceOnNewLineForFunctions = false }
inlayHints = { includeInlayEnumMemberValueHints = true, includeInlayFunctionLikeReturnTypeHints = true, includeInlayFunctionParameterTypeHints = true, includeInlayParameterNameHints = "none", includeInlayParameterNameHintsWhenArgumentMatchesName = true, includeInlayPropertyDeclarationTypeHints = true, includeInlayVariableTypeHints = true }
[language-server.typescript-language-server.config.completions]
completeFunctionCalls = true
[language-server.eslint]
command = "vscode-eslint-language-server"
args = ["--stdio"]
[language-server.eslint.config]
validate = "probe"
packageManager = "npm"
useESLintClass = false
codeAction = { disableRuleComment = { enable = true, location = "separateLine" }, showDocumentation = { enable = true } }
codeActionOnSave = { enable = false, mode = "all" }
format = true
quiet = false
onIgnoredFiles = "off"
options = {}
rulesCustomizations = []
run = "onType"
nodePath = ""
# workingDirectory = ""
experimental = { useFlatConfig = false }
problems = { shortenToSingleLine = false }
[language-server.rust-analyzer]
command = "rust-analyzer"
[language-server.rust-analyzer.config]
inlayHints.bindingModeHints.enable = false
inlayHints.closingBraceHints.minLines = 10
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.discriminantHints.enable = "fieldless"
inlayHints.lifetimeElisionHints.enable = "skip_trivial"
inlayHints.typeHints.hideClosureInitialization = false
# [language-server.rust-analyzer.experimental]
# snippetTextEdit = true NOT SUPPORT NOW
[[language]]
name = "javascript"
language-id = "javascript"
file-types = ["js", "mjs", "cjs", "rules", "es6", "pac", "jakefile"]
roots = ["package.json"]
language-servers = [
# { name = "typescript-language-server", except-features = [
# "format",
# ] },
{ name = "vtsls", except-features = [ "format" ] },
{ name = "eslint", support-workspace = true },
]
[[language]]
name = "jsx"
language-id = "javascriptreact"
file-types = ["jsx"]
roots = ["package.json"]
language-servers = [
# { name = "typescript-language-server", except-features = [
# "format",
# ] },
{ name = "vtsls", except-features = [ "format" ] },
{ name = "eslint", support-workspace = true, config-files = [".eslintrc.js", ".eslintrc.cjs", ".eslintrc.yaml", ".eslintrc.yml", ".eslintrc", ".eslintrc.json"] },
]
[[language]]
name = "typescript"
language-id = "typescript"
file-types = ["ts", "mts", "cts"]
roots = ["package.json"]
language-servers = [
# { name = "typescript-language-server", except-features = [
# "format",
# ] },
{ name = "vtsls", except-features = [ "format" ] },
{ name = "eslint", support-workspace = true, config-files = [".eslintrc.js", ".eslintrc.cjs", ".eslintrc.yaml", ".eslintrc.yml", ".eslintrc", ".eslintrc.json"] },
]
[[language]]
name = "tsx"
language-id = "typescriptreact"
file-types = ["tsx"]
roots = ["package.json"]
language-servers = [
{ name = "vtsls", except-features = [ "format" ] },
# { name = "typescript-language-server", except-features = [
# "format",
# ] },
"tailwindcss-ls",
{ name = "eslint", support-workspace = true, config-files = [".eslintrc.js", ".eslintrc.cjs", ".eslintrc.yaml", ".eslintrc.yml", ".eslintrc", ".eslintrc.json"] },
]
[[language]]
name = "less"
language-id = "less"
file-types = ["less"]
language-servers = ["css-ls"]
[[language]]
name = "python"
file-types = ["py", "pyi", "py3", "pyw", "ptl", "rpy", "cpy", "ipy", "pyt", { glob = ".python_history" }, { glob = ".pythonstartup" }, { glob = ".pythonrc" }, { glob = "SConstruct" }, { glob = "SConscript" }]
roots = ["pyproject.toml", "setup.py", "poetry.lock", "pyrightconfig.json"]
language-servers = [ "basedpyright" ]
[[language]]
name = "rust"
file-types = ["rs"]
roots = ["Cargo.toml", "Cargo.lock"]
language-servers = [
{ name = "rust-analyzer", library-directories = ["~/.cargo/registry/src", "~/.rustup/toolchains"] }
]
[[language]]
name = "toml"
file-types = ["toml", { glob = "pdm.lock" }, { glob = "poetry.lock" }, { glob = "Cargo.lock" }, { glob = "uv.lock" }]
language-servers = [ "taplo" ]
[[language]]
name = "bash"
file-types = [
"sh",
"bash",
"ash",
"dash",
"ksh",
"mksh",
"zsh",
"zshenv",
"zlogin",
"zlogout",
"zprofile",
"zshrc",
"eclass",
"ebuild",
"bazelrc",
"Renviron",
"zsh-theme",
"cshrc",
"tcshrc",
"bashrc_Apple_Terminal",
"zshrc_Apple_Terminal",
{ glob = "tmux.conf" },
{ glob = ".bash_history" },
{ glob = ".bash_login" },
{ glob = ".bash_logout" },
{ glob = ".bash_profile" },
{ glob = ".bashrc" },
{ glob = ".profile" },
{ glob = ".zshenv" },
{ glob = ".zlogin" },
{ glob = ".zlogout" },
{ glob = ".zprofile" },
{ glob = ".zshrc" },
{ glob = ".zimrc" },
{ glob = "APKBUILD" },
{ glob = ".bash_aliases" },
{ glob = ".Renviron" },
{ glob = ".xprofile" },
{ glob = ".xsession" },
{ glob = ".xsessionrc" },
{ glob = ".yashrc" },
{ glob = ".yash_profile" },
{ glob = ".hushlogin" },
]
language-servers = [ "bash-language-server" ]
[[language]]
name = "json"
file-types = [
"json",
"arb",
"ipynb",
"geojson",
"gltf",
"webmanifest",
{ glob = "flake.lock" },
{ glob = ".babelrc" },
{ glob = ".bowerrc" },
{ glob = ".jscrc" },
"js.map",
"ts.map",
"css.map",
{ glob = ".jslintrc" },
"jsonl",
"jsonld",
{ glob = ".vuerc" },
{ glob = "composer.lock" },
{ glob = ".watchmanconfig" },
"avsc",
{ glob = ".prettierrc" },
]
language-servers = [ "vscode-json-language-server" ]
[[language]]
name = "java"
file-types = ["java", "jav", "pde"]
roots = ["pom.xml", "build.gradle", "build.gradle.kts"]
language-servers = [ "jdtls" ]
[[language]]
name = "dart"
file-types = ["dart"]
roots = ["pubspec.yaml"]
language-servers = [ { name = "dart", library-directories = ["~/.pub-cache"]} ]
[[language]]
name = "c"
file-types = ["c"]
language-servers = [ "clangd" ]
[[language]]
name = "cpp"
file-types = ["cc", "hh", "c++", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino", "C", "H", "cu", "cuh", "cppm", "h++", "ii", "inl", { glob = ".hpp.in" }, { glob = ".h.in" }]
language-servers = [ "clangd" ]