# HG changeset patch # User zegervdv # Date 1703155671 -3600 # Node ID 6c169d906c7dd1bcd25ebf94fce50cfd35374815 # Parent 1b779efc2b4200c45422655a41c4f321000d79c5 feat: enable highlighting for chezmoi .tmpl files diff -r 1b779efc2b42 -r 6c169d906c7d .chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl --- a/.chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl Thu Dec 21 11:47:20 2023 +0100 +++ b/.chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl Thu Dec 21 11:47:51 2023 +0100 @@ -2,27 +2,27 @@ {{ if eq .chezmoi.osRelease.name "Ubuntu" -}} {{ $packages := list - "build-essential" - "libsqlite3-dev" - "libreadline-dev" - "libbz2-dev" - "libncurses-dev" - "zlib1g-dev" - "libffi-dev" - "libssl-dev" - "software-properties-common" - "fzf" - "fd-find" - "ripgrep" - "jq" - "pass" - "apt-file" - "fonts-firacode" - "kitty" - "yodl" - "libevent-core-2.1-7" - "libevent-dev" - "pipx" -}} + "build-essential" + "libsqlite3-dev" + "libreadline-dev" + "libbz2-dev" + "libncurses-dev" + "zlib1g-dev" + "libffi-dev" + "libssl-dev" + "software-properties-common" + "fzf" + "fd-find" + "ripgrep" + "jq" + "pass" + "apt-file" + "fonts-firacode" + "kitty" + "yodl" + "libevent-core-2.1-7" + "libevent-dev" + "pipx" -}} {{ $ppa := list "ppa:maveonair/helix-editor" diff -r 1b779efc2b42 -r 6c169d906c7d dot_config/helix/languages.toml --- a/dot_config/helix/languages.toml Thu Dec 21 11:47:20 2023 +0100 +++ b/dot_config/helix/languages.toml Thu Dec 21 11:47:51 2023 +0100 @@ -26,3 +26,7 @@ comment-token = "#" indent = { tab-width = 2, unit = " " } roots = [] + +[[language]] +name = 'gotmpl' +file-types = ["tmpl"] diff -r 1b779efc2b42 -r 6c169d906c7d dot_config/helix/runtime/queries/gotmpl/injections.scm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dot_config/helix/runtime/queries/gotmpl/injections.scm Thu Dec 21 11:47:51 2023 +0100 @@ -0,0 +1,7 @@ +((text) @injection.content + (#set! injection.language "bash") + (#set! injection.combined)) + +((text) @injection.content + (#set! injection.language "toml") + (#set! injection.combined))