Mercurial > dotfiles
changeset 825:6c169d906c7d
feat: enable highlighting for chezmoi .tmpl files
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 21 Dec 2023 11:47:51 +0100 |
parents | 1b779efc2b42 |
children | b2e6175efcad |
files | .chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl dot_config/helix/languages.toml dot_config/helix/runtime/queries/gotmpl/injections.scm |
diffstat | 3 files changed, 32 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- 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"
--- 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"]
--- /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))