AutoYADM commit: 2025-06-12 19:01:37

This commit is contained in:
Daniel Fichtinger 2025-06-12 19:01:37 -04:00
parent 5cfce025d3
commit 86219b0de0
2 changed files with 8 additions and 4 deletions

View file

@ -97,7 +97,7 @@ pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb"
path = "runtime/queries/ini"
[language.just]
aliases = ["just", "justfile"]
aliases = ["justfile"]
[language.just.grammar.source.git]
url = "https://github.com/poliorcetics/tree-sitter-just"

View file

@ -2,10 +2,14 @@
# ‾‾‾‾‾‾‾‾‾
hook global BufCreate .*/?[jJ]ustfile %{
set-option buffer filetype just
set-option buffer filetype justfile
}
hook global WinSetOption filetype=just %{
hook global WinSetOption tree_sitter_lang=justfile %{
set-option window tree_sitter_lang just
}
hook global WinSetOption filetype=justfile %{
require-module justfile
hook window ModeChange pop:insert:.* -group justfile-trim-indent justfile-trim-indent
@ -14,7 +18,7 @@ hook global WinSetOption filetype=just %{
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window justfile-.+ }
}
hook -group justfile-highlight global WinSetOption filetype=just %{
hook -group justfile-highlight global WinSetOption filetype=justfile %{
add-highlighter window/justfile ref justfile
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/justfile }
}