AutoYADM commit: 2025-06-14 03:47:59
This commit is contained in:
parent
5e2ea8c965
commit
5ffe0c53a3
3 changed files with 6 additions and 3 deletions
|
@ -192,8 +192,8 @@ hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
|
||||||
""",
|
""",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
require-module ltex-dict
|
# require-module ltex-dict
|
||||||
ltex-dict-set
|
# ltex-dict-set
|
||||||
define-command -docstring 'Add selection to ltex-ls dictionary' ltex-add %{
|
define-command -docstring 'Add selection to ltex-ls dictionary' ltex-add %{
|
||||||
set-option buffer lsp_servers %sh{
|
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")"
|
printf %s "$kak_opt_lsp_servers" | kak -f "$(printf '<a-s><a-k>dictionary =<ret>s\\[.*\\]<ret><a-i>]_a, "%s"' "$kak_selection")"
|
||||||
|
|
|
@ -8,7 +8,8 @@ provide-module ltex-dict %~
|
||||||
# declare-option str foobartest ''
|
# declare-option str foobartest ''
|
||||||
set-option buffer lsp_servers %sh{
|
set-option buffer lsp_servers %sh{
|
||||||
# printf %s "$kak_opt_lsp_servers" | sed
|
# 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"
|
# cat /tmp/lspconf.txt | sed "/^\s*dictionary =/ s/\[\]/$list/g"
|
||||||
echo "$kak_opt_lsp_servers" | sed "/^\s*dictionary =/ s/\[\]/$list/g"
|
echo "$kak_opt_lsp_servers" | sed "/^\s*dictionary =/ s/\[\]/$list/g"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
foobartest
|
foobartest
|
||||||
apple
|
apple
|
||||||
|
SonarAuth
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue