AutoYADM commit: 2025-06-13 18:10:14
This commit is contained in:
parent
ef59006298
commit
d4bf1a83f7
1 changed files with 5 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue