AutoYADM commit: 2025-06-13 18:10:14

This commit is contained in:
Daniel Fichtinger 2025-06-13 18:10:14 -04:00
parent ef59006298
commit d4bf1a83f7

View file

@ -124,6 +124,11 @@ 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"]