summaryrefslogtreecommitdiffstats
path: root/modules/by-name/nv/nvim/plgs/ltex_extra/0001-ltex_extra-commands-lsp.lua-Also-support-ltex-plus-a.patch
blob: d739ff0f425a992d0c0f03b7914b64e7185a95c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From ecd59b8bbc6060ec000516b60dbc1de480d6059d Mon Sep 17 00:00:00 2001
From: Soispha Peetz <soispha@b-peetz.de>
Date: Sun, 29 Nov 2026 01:59:04 +0100
Subject: [PATCH] ltex_extra/commands-lsp.lua: Also support `ltex-plus` as name
 for `ltex_plus`

---
 lua/ltex_extra/commands-lsp.lua | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lua/ltex_extra/commands-lsp.lua b/lua/ltex_extra/commands-lsp.lua
index 797f43a..a032a0e 100644
--- a/lua/ltex_extra/commands-lsp.lua
+++ b/lua/ltex_extra/commands-lsp.lua
@@ -63,6 +63,13 @@ function M.catch_ltex()
         })
     end
 
+    if vim.tbl_isempty(buf_clients) then
+        buf_clients = client_getter({
+            bufnr = vim.api.nvim_get_current_buf(),
+            name = "ltex-plus",
+        })
+    end
+
     return buf_clients[1]
 end
 
-- 
2.56.1