mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-11 18:58:00 +03:00
feat(languages): add support for *.Dockerfile
file-types
naming convention (#9772)
Current `file-types` only supports up to a `Dockerfile.frontend` naming scheme. With these changes `frontend.Dockerfile` now gives proper highlights and lsp actions.
This commit is contained in:
parent
9267343830
commit
cc43e3521e
@ -1494,7 +1494,20 @@ name = "dockerfile"
|
|||||||
scope = "source.dockerfile"
|
scope = "source.dockerfile"
|
||||||
injection-regex = "docker|dockerfile"
|
injection-regex = "docker|dockerfile"
|
||||||
roots = ["Dockerfile", "Containerfile"]
|
roots = ["Dockerfile", "Containerfile"]
|
||||||
file-types = [{ glob = "Dockerfile*" }, { glob = "dockerfile*" }, { glob = "Containerfile*" }, { glob = "containerfile*" }]
|
file-types = [
|
||||||
|
"Dockerfile",
|
||||||
|
{ glob = "Dockerfile" },
|
||||||
|
{ glob = "Dockerfile.*" },
|
||||||
|
"dockerfile",
|
||||||
|
{ glob = "dockerfile" },
|
||||||
|
{ glob = "dockerfile.*" },
|
||||||
|
"Containerfile",
|
||||||
|
{ glob = "Containerfile" },
|
||||||
|
{ glob = "Containerfile.*" },
|
||||||
|
"containerfile",
|
||||||
|
{ glob = "containerfile" },
|
||||||
|
{ glob = "containerfile.*" },
|
||||||
|
]
|
||||||
comment-token = "#"
|
comment-token = "#"
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
language-servers = [ "docker-langserver" ]
|
language-servers = [ "docker-langserver" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user