diff options
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index e8ff863..e710fd7 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -187,6 +187,25 @@ return { | |||
187 | end, | 187 | end, |
188 | } | 188 | } |
189 | 189 | ||
190 | -- ltex | ||
191 | require("lspconfig")["ltex"].setup({ | ||
192 | capabilities = capabilities, | ||
193 | on_attach = function(client, bufnr) | ||
194 | on_attach(client, bufnr) | ||
195 | require("ltex_extra").setup { | ||
196 | load_langs = { "en-GB" }, | ||
197 | init_check = true, | ||
198 | log_level = "none", | ||
199 | } | ||
200 | end, | ||
201 | filetypes = { "bib", "gitcommit", "markdown", "org", "plaintex", "rst", "rnoweb", "tex", "pandoc", "quarto", "rmd", "context", "mail", "text" }, | ||
202 | settings = { | ||
203 | ltex = { | ||
204 | enabled = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex", "quarto", "rmd", "context", "mail", "plaintext" } | ||
205 | } | ||
206 | } | ||
207 | }) | ||
208 | |||
190 | vim.g.rustaceanvim = { | 209 | vim.g.rustaceanvim = { |
191 | -- Plugin configuration | 210 | -- Plugin configuration |
192 | tools = { | 211 | tools = { |
@@ -208,6 +227,11 @@ return { | |||
208 | end, | 227 | end, |
209 | }, | 228 | }, |
210 | { | 229 | { |
230 | "barreiroleo/ltex_extra.nvim", | ||
231 | ft = { "markdown", "tex" }, | ||
232 | dependencies = { "neovim/nvim-lspconfig" }, | ||
233 | }, | ||
234 | { | ||
211 | "j-hui/fidget.nvim", | 235 | "j-hui/fidget.nvim", |
212 | event = "VeryLazy", | 236 | event = "VeryLazy", |
213 | opts = { | 237 | opts = { |