mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
feat: add support for gjs and gts (#9940)
This commit is contained in:
parent
a959c0ef9b
commit
295a9a95ce
16 changed files with 109 additions and 0 deletions
|
@ -197,6 +197,28 @@ inlayHints.functionLikeReturnTypes.enabled = true
|
|||
inlayHints.enumMemberValues.enabled = true
|
||||
inlayHints.parameterNames.enabled = "all"
|
||||
|
||||
[language-server.vscode-eslint-language-server]
|
||||
command = "vscode-eslint-language-server"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language-server.vscode-eslint-language-server.config]
|
||||
validate = "on"
|
||||
experimental = { useFlatConfig = false }
|
||||
rulesCustomizations = []
|
||||
run = "onType"
|
||||
problems = { shortenToSingleLine = false }
|
||||
nodePath = ""
|
||||
|
||||
[language-server.vscode-eslint-language-server.config.codeAction.disableRuleComment]
|
||||
enable = true
|
||||
location = "separateLine"
|
||||
|
||||
[language-server.vscode-eslint-language-server.config.codeAction.showDocumentation]
|
||||
enable = true
|
||||
|
||||
[language-server.vscode-eslint-language-server.config.workingDirectory]
|
||||
mode = "location"
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
scope = "source.rust"
|
||||
|
@ -3586,3 +3608,51 @@ language-servers = ["pest-language-server"]
|
|||
[[grammar]]
|
||||
name = "pest"
|
||||
source = { git = "https://github.com/pest-parser/tree-sitter-pest", rev = "a8a98a824452b1ec4da7f508386a187a2f234b85" }
|
||||
|
||||
[[language]]
|
||||
name = "gjs"
|
||||
scope = "source.gjs"
|
||||
file-types = ["gjs"]
|
||||
roots = ["package.json", "ember-cli-build.js"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [
|
||||
{ except-features = [
|
||||
"format", "diagnostics",
|
||||
], name = "typescript-language-server" },
|
||||
"vscode-eslint-language-server",
|
||||
"ember-language-server",
|
||||
]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "javascript"
|
||||
|
||||
[language.auto-pairs]
|
||||
'<' = '>'
|
||||
"'" = "'"
|
||||
"{" = "}"
|
||||
"(" = ")"
|
||||
'"' = '"'
|
||||
|
||||
[[language]]
|
||||
name = "gts"
|
||||
scope = "source.gts"
|
||||
file-types = ["gts"]
|
||||
roots = ["package.json", "ember-cli-build.js"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [
|
||||
{ except-features = [
|
||||
"format", "diagnostics",
|
||||
], name = "typescript-language-server" },
|
||||
"vscode-eslint-language-server",
|
||||
"ember-language-server",
|
||||
]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "typescript"
|
||||
|
||||
[language.auto-pairs]
|
||||
'<' = '>'
|
||||
"'" = "'"
|
||||
"{" = "}"
|
||||
"(" = ")"
|
||||
'"' = '"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue