AutoYADM commit: 2025-06-14 17:55:14
This commit is contained in:
parent
c8e788f40e
commit
5c23f08534
2 changed files with 13 additions and 4 deletions
9
.config/kak/autoload/filetype/user-mode.kak
Normal file
9
.config/kak/autoload/filetype/user-mode.kak
Normal 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>}
|
|
@ -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")"
|
# 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
|
declare-user-mode latex
|
||||||
map -docstring 'ltex mode' buffer user L ': enter-user-mode ltex<ret>'
|
map -docstring 'PDF preview search' buffer latex / ': texlab-forward-search<ret>'
|
||||||
map -docstring 'PDF preview search' buffer ltex / ': texlab-forward-search<ret>'
|
map -docstring 'add selection to ltex dictionary' buffer latex a ': ltex-dictionary-add<ret>'
|
||||||
map -docstring 'add selection to ltex dictionary' buffer ltex s ': ltex-add<ret>'
|
map -docstring 'refresh ltex dictionary' buffer latex r ': ltex-dictionary-load<ret>'
|
||||||
}
|
}
|
||||||
|
|
||||||
remove-hooks global lsp-filetype-javascript
|
remove-hooks global lsp-filetype-javascript
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue