From 2dbc978b686ad11e88e7615099219032bb0a0817 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 17 Jan 2025 10:08:46 +0100 Subject: nvim: add ltex and ltex_extra --- .config/nvim/lua/plugins/lsp.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to '.config/nvim') 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 { end, } + -- ltex + require("lspconfig")["ltex"].setup({ + capabilities = capabilities, + on_attach = function(client, bufnr) + on_attach(client, bufnr) + require("ltex_extra").setup { + load_langs = { "en-GB" }, + init_check = true, + log_level = "none", + } + end, + filetypes = { "bib", "gitcommit", "markdown", "org", "plaintex", "rst", "rnoweb", "tex", "pandoc", "quarto", "rmd", "context", "mail", "text" }, + settings = { + ltex = { + enabled = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex", "quarto", "rmd", "context", "mail", "plaintext" } + } + } + }) + vim.g.rustaceanvim = { -- Plugin configuration tools = { @@ -207,6 +226,11 @@ return { } end, }, + { + "barreiroleo/ltex_extra.nvim", + ft = { "markdown", "tex" }, + dependencies = { "neovim/nvim-lspconfig" }, + }, { "j-hui/fidget.nvim", event = "VeryLazy", -- cgit v1.2.3-70-g09d2