AutoYADM commit: 2025-06-14 17:55:14

This commit is contained in:
Daniel Fichtinger 2025-06-14 17:55:14 -04:00
parent c8e788f40e
commit 5c23f08534
2 changed files with 13 additions and 4 deletions

View file

@ -0,0 +1,9 @@
define-command -params 1 enter-filetype-mode %{
try %{
enter-user-mode %arg{1}
} catch %{
fail No user mode set up for filetype %arg{1}
}
}
map global normal "'" %{: enter-filetype-mode %opt{filetype}<ret>}

View file

@ -197,10 +197,10 @@ hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
# printf %s "$kak_opt_lsp_servers" | kak -f "$(printf '<a-s><a-k>dictionary =<ret>s\\[.*\\]<ret><a-i>]_a, "%s"' "$kak_selection")"
# }
# }
declare-user-mode ltex
map -docstring 'ltex mode' buffer user L ': enter-user-mode ltex<ret>'
map -docstring 'PDF preview search' buffer ltex / ': texlab-forward-search<ret>'
map -docstring 'add selection to ltex dictionary' buffer ltex s ': ltex-add<ret>'
declare-user-mode latex
map -docstring 'PDF preview search' buffer latex / ': texlab-forward-search<ret>'
map -docstring 'add selection to ltex dictionary' buffer latex a ': ltex-dictionary-add<ret>'
map -docstring 'refresh ltex dictionary' buffer latex r ': ltex-dictionary-load<ret>'
}
remove-hooks global lsp-filetype-javascript