summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2025-01-17 10:08:46 +0100
committerYigit Sever2025-01-17 10:08:46 +0100
commit2dbc978b686ad11e88e7615099219032bb0a0817 (patch)
tree3db6f83a34daa6ec076842c2f49f4f4cb8a48b08 /.config
parent602e76b8781e4e01b209ad9274962302e58a5054 (diff)
downloaddotfiles-2dbc978b686ad11e88e7615099219032bb0a0817.tar.gz
dotfiles-2dbc978b686ad11e88e7615099219032bb0a0817.tar.bz2
dotfiles-2dbc978b686ad11e88e7615099219032bb0a0817.zip
nvim: add ltex and ltex_extra
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/plugins/lsp.lua24
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 = {