AutoYADM commit: 2025-06-13 16:40:15

This commit is contained in:
Daniel Fichtinger 2025-06-13 16:40:15 -04:00
parent 3aac1523e8
commit 3512091403
2 changed files with 21 additions and 0 deletions

View file

@ -8,6 +8,16 @@ hook global WinSetOption filetype=python %{
remove-hooks window python-auto-format remove-hooks window python-auto-format
} }
} }
hook global WinSetOption filetype=latex %{
set-option window formatcmd "tex-fmt --stdin"
hook -group latex-auto-format window BufWritePre .* try { format }
hook -once -always WinSetOption filetype=.* %{
unset-option window formatcmd
remove-hooks window latex-auto-format
}
}
hook global WinSetOption filetype=go %{ hook global WinSetOption filetype=go %{
# set-option window expandtab false # set-option window expandtab false
# set-option window softtabstop 4 # set-option window softtabstop 4

View file

@ -30,3 +30,14 @@ indent_size = 2
[*.fish] [*.fish]
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
[*.tex]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
[*.{sty,cls,bib}]
indent_style = space
indent_size = 2