AutoYADM commit: 2025-06-14 03:47:59

This commit is contained in:
Daniel Fichtinger 2025-06-14 03:47:59 -04:00
parent 5e2ea8c965
commit 5ffe0c53a3
3 changed files with 6 additions and 3 deletions

View file

@ -192,8 +192,8 @@ hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
""",
]
}
require-module ltex-dict
ltex-dict-set
# require-module ltex-dict
# ltex-dict-set
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")"

View file

@ -8,7 +8,8 @@ provide-module ltex-dict %~
# declare-option str foobartest ''
set-option buffer lsp_servers %sh{
# printf %s "$kak_opt_lsp_servers" | sed
list="$(cat "$kak_opt_ltex_dict_path" | kak -f '%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>')"
list="$(cat "$kak_opt_ltex_dict_path" | kak -f '%<a-J>Zbi\"<esc>a\"<esc>z<a-,>r,x_i[<esc>a]<esc>')"
notify-send "$list"
# cat /tmp/lspconf.txt | sed "/^\s*dictionary =/ s/\[\]/$list/g"
echo "$kak_opt_lsp_servers" | sed "/^\s*dictionary =/ s/\[\]/$list/g"
}

View file

@ -1,2 +1,4 @@
foobartest
apple
SonarAuth