diff --git a/.config/kak/autoload/lsp.kak b/.config/kak/autoload/lsp.kak index 2959c6a7..a9f8de53 100644 --- a/.config/kak/autoload/lsp.kak +++ b/.config/kak/autoload/lsp.kak @@ -163,45 +163,45 @@ 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" = [] } +# 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"] - [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 - ' - """, - ] - } -} +# [texlab] +# 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 +# ' +# """, +# ] +# } +# } remove-hooks global lsp-filetype-latex hook -group lsp-filetype-latex global BufSetOption filetype=latex %{