AutoYADM commit: 2025-06-14 01:44:59
This commit is contained in:
parent
75db3c4510
commit
f46d0bd419
3 changed files with 16 additions and 1 deletions
|
@ -153,6 +153,9 @@ hook -group lsp-filetype-python global BufSetOption filetype=python %{
|
||||||
|
|
||||||
remove-hooks global lsp-filetype-latex
|
remove-hooks global lsp-filetype-latex
|
||||||
hook -group lsp-filetype-latex global BufSetOption 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 %{
|
set-option buffer lsp_servers %{
|
||||||
[ltex-ls-plus]
|
[ltex-ls-plus]
|
||||||
root_globs = [".git", ".hg", "main.tex"]
|
root_globs = [".git", ".hg", "main.tex"]
|
||||||
|
@ -160,7 +163,7 @@ hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
|
||||||
# TODO: write a script where the dictionary is a list of words
|
# TODO: write a script where the dictionary is a list of words
|
||||||
# that's read from a file and then output in TOML format.
|
# 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
|
# This way we can implement adding our own words to this list dynamically
|
||||||
dictionary = { "en-US" = ["builtin", "Fichtinger", "SonarAuth" ] }
|
%opt{foobartest}
|
||||||
|
|
||||||
[texlab]
|
[texlab]
|
||||||
root_globs = [".git", ".hg"]
|
root_globs = [".git", ".hg"]
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
provide-module ltex-dict %~
|
provide-module ltex-dict %~
|
||||||
|
|
||||||
declare-option str ltex_dict_path %exp{%val{config}/ltex-dict.txt}
|
declare-option str ltex_dict_path %exp{%val{config}/ltex-dict.txt}
|
||||||
|
declare-option -hidden str ltex_tomlize %{
|
||||||
|
'%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
|
||||||
|
}
|
||||||
|
define-command ltex-dict-read %{
|
||||||
|
echo -debug %sh{
|
||||||
|
cat "$kak_opt_ltex_dict_path" | kak -f '%<a-J>Zbi"<esc>a"<esc>z<a-,>r,x_i[<esc>a]<esc>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
~
|
~
|
||||||
|
|
4
.config/kak/ltex-dict.txt
Normal file
4
.config/kak/ltex-dict.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apple
|
||||||
|
banana
|
||||||
|
cherry
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue