AutoYADM commit: 2025-06-14 02:45:38

This commit is contained in:
Daniel Fichtinger 2025-06-14 02:45:38 -04:00
parent 0d8b5aa3cd
commit 5e2ea8c965
3 changed files with 10 additions and 9 deletions

View file

@ -5,14 +5,15 @@ provide-module ltex-dict %~
'%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
}
define-command ltex-dict-set %{
declare-option str foobartest ''
set-option buffer foobartest %sh{
# 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>')"
# cat /tmp/lspconf.txt | sed "/^\s*dictionary =/ s/\[\]/$list/g"
printf "$kak_opt_lsp_servers" | sed "/^\s*dictionary =/ s/\[\]/$list/g"
echo "$kak_opt_lsp_servers" | sed "/^\s*dictionary =/ s/\[\]/$list/g"
}
echo -debug %opt{foobartest}
echo -debug %opt{lsp_servers}
# echo -debug %opt{foobartest}
}
~