mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
Add docker-compose language (#9661)
* languages: add docker-compose language it uses docker-compose-langserver as lsp And yaml for syntax highlighting, indents and injections * languages: add luajit as a shebang of lua This helps to provide syntax highlighting and other lua goodies when writing luajit * book(update): run cargo xtask docgen * since #8006 full filenames uses glob
This commit is contained in:
parent
b950dea003
commit
c72426cc87
@ -30,6 +30,7 @@
|
||||
| devicetree | ✓ | | | |
|
||||
| dhall | ✓ | ✓ | | `dhall-lsp-server` |
|
||||
| diff | ✓ | | | |
|
||||
| docker-compose | ✓ | | ✓ | `docker-compose-langserver` |
|
||||
| dockerfile | ✓ | | | `docker-langserver` |
|
||||
| dot | ✓ | | | `dot-language-server` |
|
||||
| dtd | ✓ | | | |
|
||||
|
@ -23,6 +23,7 @@ cuelsp = { command = "cuelsp" }
|
||||
dart = { command = "dart", args = ["language-server", "--client-id=helix"] }
|
||||
dhall-lsp-server = { command = "dhall-lsp-server" }
|
||||
docker-langserver = { command = "docker-langserver", args = ["--stdio"] }
|
||||
docker-compose-langserver = { command = "docker-compose-langserver", args = ["--stdio"]}
|
||||
dot-language-server = { command = "dot-language-server", args = ["--stdio"] }
|
||||
elixir-ls = { command = "elixir-ls", config = { elixirLS.dialyzerEnabled = false } }
|
||||
elm-language-server = { command = "elm-language-server" }
|
||||
@ -1092,7 +1093,7 @@ name = "lua"
|
||||
injection-regex = "lua"
|
||||
scope = "source.lua"
|
||||
file-types = ["lua"]
|
||||
shebangs = ["lua"]
|
||||
shebangs = ["lua", "luajit"]
|
||||
roots = [".luarc.json", ".luacheckrc", ".stylua.toml", "selene.toml", ".git"]
|
||||
comment-token = "--"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
@ -1460,6 +1461,16 @@ language-servers = [ "docker-langserver" ]
|
||||
name = "dockerfile"
|
||||
source = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev = "8ee3a0f7587b2bd8c45c8cb7d28bd414604aec62" }
|
||||
|
||||
[[language]]
|
||||
name = "docker-compose"
|
||||
scope = "source.yaml.docker-compose"
|
||||
roots = ["docker-compose.yaml", "docker-compose.yml"]
|
||||
language-servers = [ "docker-compose-langserver" ]
|
||||
file-types = [{ glob = "docker-compose.yaml" }, { glob = "docker-compose.yml" }]
|
||||
comment-token = "#"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "yaml"
|
||||
|
||||
[[language]]
|
||||
name = "git-commit"
|
||||
scope = "git.commitmsg"
|
||||
|
1
runtime/queries/docker-compose/highlights.scm
Normal file
1
runtime/queries/docker-compose/highlights.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: yaml
|
1
runtime/queries/docker-compose/indents.scm
Normal file
1
runtime/queries/docker-compose/indents.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: yaml
|
1
runtime/queries/docker-compose/injections.scm
Normal file
1
runtime/queries/docker-compose/injections.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: yaml
|
Loading…
Reference in New Issue
Block a user