AutoYADM commit: 2025-07-26 18:03:38

This commit is contained in:
Daniel Fichtinger 2025-07-26 18:03:38 -04:00
parent 39458a8af4
commit ef79ece47e
2 changed files with 11 additions and 4 deletions

View file

@ -372,8 +372,8 @@ hook -group lsp-filetype-markdown global BufSetOption filetype=markdown %{
}
declare-filetype-mode markdown
map global markdown h ':markdown-lsp-with-harper<ret>'
map global markdown <a-h> ':markdown-lsp-without-harper<ret>'
map -docstring 'enable harper' global markdown h ':markdown-lsp-with-harper<ret>'
map -docstring 'disable harper' global markdown <a-h> ':markdown-lsp-without-harper<ret>'
remove-hooks global lsp-filetype-typst
hook -group lsp-filetype-typst global BufSetOption filetype=typst %{

View file

@ -191,8 +191,15 @@ hook global BufWritePost .*/\.config/niri/.*\.kdl(##.+)? %{
}
declare-filetype-mode markdown
define-command markdown-code-block %{
execute-keys 'o```<esc>o```<esc>kA'
define-command -params 0..1 markdown-code-block %{
execute-keys 'o```<esc>o```<esc><c-l>kA'
hook -once window InsertKey <ret> %{
execute-keys '<c-l>'
}
}
map -docstring 'codeblock' global markdown ` ': markdown-code-block<ret>'
map -docstring 'bold' global markdown b ':surround-add-pair "**" "**"<ret>'
map -docstring 'unbold' global markdown <a-b> ':surround-delete-key *<ret>:surround-delete-key *<ret>'
map -docstring 'emph' global markdown e ':surround-add-pair "_" "_"<ret>'
map -docstring 'unemph' global markdown <a-e> ':surround-delete-key _<ret>'
map -docstring 'lazygit' global git g ': terminal lazygit<ret>'