AutoYADM commit: 2025-07-24 14:24:36

This commit is contained in:
Daniel Fichtinger 2025-07-24 14:24:36 -04:00
parent 072a2b4cbb
commit 89437e88d6

View file

@ -133,6 +133,11 @@ hook global WinSetOption filetype=kak %{
} }
hook global WinSetOption filetype=typst %{ hook global WinSetOption filetype=typst %{
declare-filetype-mode typst
map -docstring 'bold' global typst b ': surround-add-pair * *<ret>'
map -docstring 'emph' global typst i ': surround-add-pair _ _<ret>'
map -docstring 'unbold' global typst <a-b> ': surround-delete-key *<ret>'
map -docstring 'unemph' global typst <a-i> ': surround-delete-key _<ret>'
set-option buffer formatcmd "typstyle --wrap-text" set-option buffer formatcmd "typstyle --wrap-text"
hook -group typst-auto-format window BufWritePre .* format hook -group typst-auto-format window BufWritePre .* format
hook -once -always window WinSetOption filetype=.* %{ hook -once -always window WinSetOption filetype=.* %{