mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
Add fish-lsp and bump tree-sitter-fish
This commit is contained in:
parent
122bbea7cf
commit
0d5f6f04c9
3 changed files with 17 additions and 11 deletions
|
@ -56,7 +56,7 @@
|
|||
| erlang | ✓ | ✓ | | `erlang_ls`, `elp` |
|
||||
| esdl | ✓ | | | |
|
||||
| fidl | ✓ | | | |
|
||||
| fish | ✓ | ✓ | ✓ | |
|
||||
| fish | ✓ | ✓ | ✓ | `fish-lsp` |
|
||||
| forth | ✓ | | | `forth-lsp` |
|
||||
| fortran | ✓ | | ✓ | `fortls` |
|
||||
| fsharp | ✓ | | | `fsautocomplete` |
|
||||
|
|
|
@ -38,6 +38,7 @@ elm-language-server = { command = "elm-language-server" }
|
|||
elp = { command = "elp", args = ["server"] }
|
||||
elvish = { command = "elvish", args = ["-lsp"] }
|
||||
erlang-ls = { command = "erlang_ls" }
|
||||
fish-lsp = { command = "fish-lsp", args = ["start"], environment = { fish_lsp_show_client_popups = "false" } }
|
||||
forc = { command = "forc", args = ["lsp"] }
|
||||
forth-lsp = { command = "forth-lsp" }
|
||||
fortls = { command = "fortls", args = ["--lowercase_intrinsics"] }
|
||||
|
@ -391,13 +392,14 @@ injection-regex = "fish"
|
|||
file-types = ["fish"]
|
||||
shebangs = ["fish"]
|
||||
comment-token = "#"
|
||||
language-servers = ["fish-lsp"]
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
auto-format = true
|
||||
formatter = { command = "fish_indent" }
|
||||
|
||||
[[grammar]]
|
||||
name = "fish"
|
||||
source = { git = "https://github.com/ram02z/tree-sitter-fish", rev = "84436cf24c2b3176bfbb220922a0fdbd0141e406" }
|
||||
source = { git = "https://github.com/ram02z/tree-sitter-fish", rev = "a78aef9abc395c600c38a037ac779afc7e3cc9e0" }
|
||||
|
||||
[[language]]
|
||||
name = "mint"
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
"&&"
|
||||
"||"
|
||||
"|"
|
||||
"&|"
|
||||
"2>|"
|
||||
"&"
|
||||
"="
|
||||
"!="
|
||||
".."
|
||||
"!"
|
||||
(direction)
|
||||
(stream_redirect)
|
||||
(test_option)
|
||||
] @operator
|
||||
|
||||
[
|
||||
|
@ -39,12 +38,12 @@
|
|||
"case"
|
||||
] @keyword.control.conditional)
|
||||
|
||||
(else_clause
|
||||
(else_clause
|
||||
[
|
||||
"else"
|
||||
] @keyword.control.conditional)
|
||||
|
||||
(else_if_clause
|
||||
(else_if_clause
|
||||
[
|
||||
"else"
|
||||
"if"
|
||||
|
@ -95,6 +94,14 @@
|
|||
|
||||
;; Commands
|
||||
|
||||
(command
|
||||
name: (word) @function.builtin (#match? @function.builtin "^test$")
|
||||
argument: (word) @operator (#match? @operator "^(!?=|-[a-zA-Z]+)$"))
|
||||
|
||||
(command
|
||||
name: (word) @punctuation.bracket (#match? @punctuation.bracket "^\\[$")
|
||||
argument: (word) @operator (#match? @operator "^(!?=|-[a-zA-Z]+)$"))
|
||||
|
||||
(command
|
||||
argument: [
|
||||
(word) @variable.parameter (#match? @variable.parameter "^-")
|
||||
|
@ -109,8 +116,6 @@
|
|||
]
|
||||
)
|
||||
|
||||
(test_command "test" @function.builtin)
|
||||
|
||||
; non-builtin command names
|
||||
(command name: (word) @function)
|
||||
|
||||
|
@ -121,7 +126,7 @@
|
|||
(function_definition
|
||||
name: [
|
||||
(word) (concatenation)
|
||||
]
|
||||
]
|
||||
@function)
|
||||
|
||||
(function_definition
|
||||
|
@ -146,7 +151,6 @@
|
|||
(integer) @constant.numeric.integer
|
||||
(float) @constant.numeric.float
|
||||
(comment) @comment
|
||||
(test_option) @string
|
||||
|
||||
((word) @constant.builtin.boolean
|
||||
(#match? @constant.builtin.boolean "^(true|false)$"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue