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
|
@ -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"
|
||||
|
|
|
@ -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