AutoYADM commit: 2025-06-13 18:15:15

This commit is contained in:
Daniel Fichtinger 2025-06-13 18:15:15 -04:00
parent d4bf1a83f7
commit 0675694c18

View file

@ -124,11 +124,6 @@ hook -group lsp-filetype-python global BufSetOption filetype=python %{
remove-hooks global lsp-filetype-latex
hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
define-command -docstring 'Add selection to ltex-ls dictionary' ltex-add %{
set-option buffer lsp_servers %sh{
printf %s "$kak_opt_lsp_servers" | kak -f "$(printf '<a-s><a-k>dictionary =<ret>s\\[.*\\]<ret><a-i>]_a, "%s"' "$kak_selection")"
}
}
set-option buffer lsp_servers %{
[ltex-ls-plus]
root_globs = [".git", ".hg", "main.tex"]
@ -165,7 +160,15 @@ hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
""",
]
}
map -docstring 'PDF preview search' buffer lsp / ': texlab-forward-search<ret>'
define-command -docstring 'Add selection to ltex-ls dictionary' ltex-add %{
set-option buffer lsp_servers %sh{
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>'
}
remove-hooks global lsp-filetype-javascript