summaryrefslogtreecommitdiff
path: root/lua/ache/plugins
diff options
context:
space:
mode:
authorache <ache@ache.one>2024-08-09 06:56:59 +0200
committerache <ache@ache.one>2024-08-09 06:57:50 +0200
commit38d58e8336a56368bb7ad031bcccf34c5723dd1b (patch)
tree537da3368a77341c7a059ac9c7ce5b2a575eb8fe /lua/ache/plugins
parentWorking session reload (diff)
Ltex extra plugin
Diffstat (limited to 'lua/ache/plugins')
-rw-r--r--lua/ache/plugins/ltex-extra.lua29
1 files changed, 29 insertions, 0 deletions
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,
+}