more config

This commit is contained in:
elkowar 2022-01-24 18:21:18 +01:00
parent b5cab2b19f
commit 0884d20450
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
2 changed files with 7 additions and 17 deletions

View file

@ -140,7 +140,7 @@
:tami5/lspsaga.nvim {:after "vim-gruvbox8" :tami5/lspsaga.nvim {:after "vim-gruvbox8"
:opt false :opt false
:commit "373bc031b39730cbfe492533c3acfac36007899a" :branch "nvim6.0"
:config #(require "dots.plugins.lspsaga")} :config #(require "dots.plugins.lspsaga")}
; >>> ; >>>

View file

@ -9,7 +9,7 @@
(def latex-command-settings (def latex-command-settings
{:dummy ["\\texttt{}"]}) {:dummy ["\\texttt{}" "\\scripture{}"]})
@ -22,8 +22,8 @@
(let [tbl {}] (let [tbl {}]
(each [option commands (pairs latex-command-settings)] (each [option commands (pairs latex-command-settings)]
(each [_ command (ipairs commands)] (each [_ command (ipairs commands)]
(tset tbl command option)))) (tset tbl command option)))
(tbl)) tbl))
(fn read-files [files] (fn read-files [files]
@ -106,18 +106,7 @@
(set configs.ltex (set configs.ltex
{:default_config {:cmd [:ltex-ls] {:default_config {:cmd [:ltex-ls]
:filetypes [:tex :bib :md] :filetypes [:tex :bib :md]
:root_dir (fn [filename] (lsputil.path.dirname filename)) :root_dir (fn [filename] (lsputil.path.dirname filename))}})
:settings {:ltex {:enabled [:latex :tex :bib :md]
:language "de-DE"
:checkFrequency "save"
:diagnosticSeverity "information"
:setenceCacheSize 5000
:additionalRules {:enablePickyRules true
:motherTongue "de-DE"}
:dictionary {:de-DE (read-files (. Dictionary-file :de-DE))}
:disabledRules {:de-DE (read-files (. Disabled-rules-file :de-DE))}
:hiddenFalsePositives {:de-DE (read-files (. False-positives-file :de-DE))}
:latex {:commands latex-command-settings-formatted}}}}})
(lsp.ltex.setup {:settings {:ltex {:enabled [:latex :tex :bib :md] (lsp.ltex.setup {:settings {:ltex {:enabled [:latex :tex :bib :md]
:language "de-DE" :language "de-DE"
@ -128,7 +117,8 @@
:motherTongue "de-DE"} :motherTongue "de-DE"}
:dictionary {:de-DE (read-files (. Dictionary-file :de-DE))} :dictionary {:de-DE (read-files (. Dictionary-file :de-DE))}
:disabledRules {:de-DE (read-files (. Disabled-rules-file :de-DE))} :disabledRules {:de-DE (read-files (. Disabled-rules-file :de-DE))}
:hiddenFalsePositives {:de-DE (read-files (. False-positives-file :de-DE))}}}}) :hiddenFalsePositives {:de-DE (read-files (. False-positives-file :de-DE))}
:latex {:commands latex-command-settings-formatted}}}})
(set lsp.ltex.dictionary_file Dictionary-file) (set lsp.ltex.dictionary_file Dictionary-file)
(set lsp.ltex.disabledrules_file Disabled-rules-file) (set lsp.ltex.disabledrules_file Disabled-rules-file)