mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
Fix file-types declaration for racket (#4915)
Both the racket and scheme entries used the rkt file-extension. This commit removes that entry for scheme and so that the racket entry takes precedence. We explicitly point to the scheme grammar now and setup queries that inherit from scheme. This should enable using the racket language server configuration.
This commit is contained in:
parent
664d08e70d
commit
67415e096e
@ -95,7 +95,7 @@
|
||||
| python | ✓ | ✓ | ✓ | `pylsp` |
|
||||
| qml | ✓ | | ✓ | `qmlls` |
|
||||
| r | ✓ | | | `R` |
|
||||
| racket | | | | `racket` |
|
||||
| racket | ✓ | | | `racket` |
|
||||
| regex | ✓ | | | |
|
||||
| rescript | ✓ | ✓ | | `rescript-language-server` |
|
||||
| rmarkdown | ✓ | | ✓ | `R` |
|
||||
|
@ -880,6 +880,7 @@ file-types = ["rkt"]
|
||||
shebangs = ["racket"]
|
||||
comment-token = ";"
|
||||
language-server = { command = "racket", args = ["-l", "racket-langserver"] }
|
||||
grammar = "scheme"
|
||||
|
||||
[[language]]
|
||||
name = "comment"
|
||||
@ -1526,7 +1527,7 @@ source = { git = "https://github.com/metio/tree-sitter-ssh-client-config", rev =
|
||||
name = "scheme"
|
||||
scope = "source.scheme"
|
||||
injection-regex = "scheme"
|
||||
file-types = ["ss", "rkt"] # "scm",
|
||||
file-types = ["ss"] # "scm",
|
||||
roots = []
|
||||
comment-token = ";"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
1
runtime/queries/racket/highlights.scm
Normal file
1
runtime/queries/racket/highlights.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: scheme
|
1
runtime/queries/racket/injections.scm
Normal file
1
runtime/queries/racket/injections.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: scheme
|
Loading…
Reference in New Issue
Block a user