-- LanguageTool LSP. -- -- A plugin to check "french" spelling in Markdown, TeX, and text files. local ltex_extra_opts = {} local ltex_ls_opts = { ltex = { language = "fr", }, } return { "barreiroleo/ltex_extra.nvim", enabled = false, ft = { "markdown", "tex", "text" }, dependencies = { "neovim/nvim-lspconfig" }, -- Yes, you can use the opts field, just I'm showing the setup explicitly. config = function() local cmp_nvim_lsp = require("cmp_nvim_lsp") local capabilities = cmp_nvim_lsp.default_capabilities() require("ltex_extra").setup({ ltex_extra_opts, server_opts = { capabilities = capabilities, filetypes = { "markdown", "text" }, flags = { debounce_text_changes = 300 }, cmd = { "ltex-ls" }, -- on_attach = function(client, bufnr) -- -- your on_attach process -- end, -- settings = ltex_ls_opts, }, }) end, }