AutoYADM commit: 2025-06-12 19:01:37
This commit is contained in:
parent
5cfce025d3
commit
86219b0de0
2 changed files with 8 additions and 4 deletions
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue