From 38d58e8336a56368bb7ad031bcccf34c5723dd1b Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 9 Aug 2024 06:56:59 +0200 Subject: Ltex extra plugin --- lua/ache/plugins/ltex-extra.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lua/ache/plugins/ltex-extra.lua (limited to 'lua/ache/plugins') diff --git a/lua/ache/plugins/ltex-extra.lua b/lua/ache/plugins/ltex-extra.lua new file mode 100644 index 0000000..fe209ad --- /dev/null +++ b/lua/ache/plugins/ltex-extra.lua @@ -0,0 +1,29 @@ +local ltex_extra_opts = {} +local ltex_ls_opts = { + ltex = { + language = "fr", + }, +} + +return { + "barreiroleo/ltex_extra.nvim", + ft = { "markdown", "tex", "text" }, + dependencies = { "neovim/nvim-lspconfig" }, + -- yes, you can use the opts field, just I'm showing the setup explicitly + config = function() + 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, +} -- cgit v1.3-2-g11bf