helix: new language xbps-template

inherit from bash
set indent-style to \t
This commit is contained in:
fanyx 2025-07-03 21:01:12 +02:00
parent 34ab2d5522
commit 8e65da17c7
Signed by: fanyx
SSH key fingerprint: SHA256:Gwc2cuQkLEIzOapSR+R8raHvC1bSAkPsYuPqlPoFlD8

View file

@ -4,52 +4,13 @@ auto-format = true
formatter = { command = "yamlfmt", args = ["-"] } formatter = { command = "yamlfmt", args = ["-"] }
[[language]] [[language]]
name = "bash" name = "xbps-template"
scope = "source.xbps"
roots = ["xbps-src"]
file-types = [ file-types = [
"sh", { glob = "srcpkgs/*/template" }
"bash",
"ash",
"dash",
"ksh",
"mksh",
"zsh",
"zshenv",
"zlogin",
"zlogout",
"zprofile",
"zshrc",
"eclass",
"ebuild",
"bazelrc",
"Renviron",
"zsh-theme",
"cshrc",
"tcshrc",
"bashrc_Apple_Terminal",
"zshrc_Apple_Terminal",
{ glob = "i3/config" },
{ glob = "sway/config" },
{ glob = "tmux.conf" },
{ glob = ".bash_history" },
{ glob = ".bash_login" },
{ glob = ".bash_logout" },
{ glob = ".bash_profile" },
{ glob = ".bashrc" },
{ glob = ".profile" },
{ glob = ".zshenv" },
{ glob = ".zlogin" },
{ glob = ".zlogout" },
{ glob = ".zprofile" },
{ glob = ".zshrc" },
{ glob = ".zimrc" },
{ glob = "APKBUILD" },
{ glob = ".bash_aliases" },
{ glob = ".Renviron" },
{ glob = ".xprofile" },
{ glob = ".xsession" },
{ glob = ".xsessionrc" },
{ glob = ".yashrc" },
{ glob = ".yash_profile" },
{ glob = ".hushlogin" },
{ glob = "template" },
] ]
comment-token = "#"
language-servers = [ "bash-language-server" ]
indent = { tab-width = 4, unit = "\t" }
grammar = "bash"