AutoYADM commit: 2025-06-14 02:45:38
This commit is contained in:
parent
0d8b5aa3cd
commit
5e2ea8c965
3 changed files with 10 additions and 9 deletions
|
@ -154,7 +154,6 @@ hook -group lsp-filetype-python global BufSetOption filetype=python %{
|
|||
remove-hooks global lsp-filetype-latex
|
||||
hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
|
||||
declare-option str foobartest %{
|
||||
dictionary = { "en-US" = ["builtin", "Fichtinger", "SonarAuth", "sexpenis" ], "en-CA" = ["more", "words"] }
|
||||
}
|
||||
set-option buffer lsp_servers %{
|
||||
[ltex-ls-plus]
|
||||
|
@ -163,7 +162,8 @@ hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
|
|||
# TODO: write a script where the dictionary is a list of words
|
||||
# that's read from a file and then output in TOML format.
|
||||
# This way we can implement adding our own words to this list dynamically
|
||||
%opt{foobartest}
|
||||
# dictionary = { "en-US" = ["builtin", "Fichtinger", "SonarAuth", "sexpenis" ], "en-CA" = ["more", "words"] }
|
||||
dictionary = { "en-US" = [] }
|
||||
|
||||
[texlab]
|
||||
root_globs = [".git", ".hg"]
|
||||
|
@ -192,6 +192,8 @@ hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
|
|||
""",
|
||||
]
|
||||
}
|
||||
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")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue