AutoYADM commit: 2025-06-19 18:45:14
This commit is contained in:
parent
e8b4144429
commit
5d6d0a5918
1 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,17 @@
|
|||
hook global BufCreate .+[.](mmd|mermaid) %{
|
||||
set-option buffer filetype mermaid
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=mermaid %{
|
||||
require-module mermaid
|
||||
set-option window indentwidth 2
|
||||
set-option window comment_line '%%'
|
||||
}
|
||||
|
||||
provide-module mermaid %—
|
||||
define-command -hidden mermaid-indent-on-new-line %~
|
||||
# preserve prev line indent
|
||||
try %{ execute-keys -draft <semicolon> K <a-&> }
|
||||
~
|
||||
|
||||
—
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue