From 0884d20450f76f01e9e6f905ae11deaf367d809e Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Mon, 24 Jan 2022 18:21:18 +0100 Subject: [PATCH] more config --- nvim/.config/nvim/fnl/dots/plugins.fnl | 2 +- .../.config/nvim/fnl/dots/plugins/ltex-ls.fnl | 22 +++++-------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/nvim/.config/nvim/fnl/dots/plugins.fnl b/nvim/.config/nvim/fnl/dots/plugins.fnl index be7b0a9..8433d7e 100644 --- a/nvim/.config/nvim/fnl/dots/plugins.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins.fnl @@ -140,7 +140,7 @@ :tami5/lspsaga.nvim {:after "vim-gruvbox8" :opt false - :commit "373bc031b39730cbfe492533c3acfac36007899a" + :branch "nvim6.0" :config #(require "dots.plugins.lspsaga")} ; >>> diff --git a/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl b/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl index 4c30217..ce1ecde 100644 --- a/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl @@ -9,7 +9,7 @@ (def latex-command-settings - {:dummy ["\\texttt{}"]}) + {:dummy ["\\texttt{}" "\\scripture{}"]}) @@ -22,8 +22,8 @@ (let [tbl {}] (each [option commands (pairs latex-command-settings)] (each [_ command (ipairs commands)] - (tset tbl command option)))) - (tbl)) + (tset tbl command option))) + tbl)) (fn read-files [files] @@ -106,18 +106,7 @@ (set configs.ltex {:default_config {:cmd [:ltex-ls] :filetypes [:tex :bib :md] - :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}}}}}) + :root_dir (fn [filename] (lsputil.path.dirname filename))}}) (lsp.ltex.setup {:settings {:ltex {:enabled [:latex :tex :bib :md] :language "de-DE" @@ -128,7 +117,8 @@ :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))}}}}) + :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.disabledrules_file Disabled-rules-file)