AutoYADM commit: 2025-06-24 13:20:26
This commit is contained in:
parent
0ecfcf45e9
commit
edbe67ebb1
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
hook global WinSetOption filetype=markdown %{
|
hook global WinSetOption filetype=markdown %{
|
||||||
# explicitly load to avoid race condition
|
# explicitly load to avoid race condition
|
||||||
require-module markdown
|
require-module markdown
|
||||||
set-option window formatcmd "dprint fmt --stdin md"
|
# set-option window formatcmd "dprint fmt --stdin md"
|
||||||
|
set-option window formatcmd %{
|
||||||
|
dprint fmt --stdin md || dprint fmt --stdin md --config "$HOME/.dprint.jsonc" -L info
|
||||||
|
}
|
||||||
hook -group markdown-auto-format window BufWritePre .* format
|
hook -group markdown-auto-format window BufWritePre .* format
|
||||||
|
|
||||||
# override formatting commands
|
# override formatting commands
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue