AutoYADM commit: 2025-06-16 18:07:18

This commit is contained in:
Daniel Fichtinger 2025-06-16 18:07:19 -04:00
parent be0ce95ec5
commit 9339668f72
3 changed files with 253 additions and 5 deletions

View file

@ -165,8 +165,41 @@ hook -group lsp-filetype-python global BufSetOption filetype=python %{
hook -group lsp-filetype-bibtex global BufSetOption filetype=bibtex %{
set-option buffer lsp_servers %{
[ltex-ls-plus]
root_globs = [".git", ".hg", "main.tex"]
[ltex-ls-plus.settings.ltex]
# 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
# dictionary = { "en-US" = ["builtin", "Fichtinger", "SonarAuth", "sexpenis" ], "en-CA" = ["more", "words"] }
dictionary = { "en-US" = [] }
[texlab]
root_globs = [".git", ".hg", "."]
root_globs = [".git", ".hg"]
[texlab.settings.texlab]
# See https://github.com/latex-lsp/texlab/wiki/Configuration
#
# Preview configuration for zathura with SyncTeX search.
# For other PDF viewers see https://github.com/latex-lsp/texlab/wiki/Previewing
build.onSave = true
forwardSearch.executable = "zathura"
forwardSearch.args = [
"%p",
"--synctex-forward", # Support texlab-forward-search
"%l:1:%f",
"--synctex-editor-command", # Inverse search: use Control+Left-Mouse-Button to jump to source.
"""
sh -c '
echo "
evaluate-commands -client %%opt{texlab_client} %%{
evaluate-commands -try-client %%opt{jumpclient} %%{
edit -- %%{input} %%{line}
}
}
" | kak -p $kak_session
'
""",
]
}
}