From 6e848af281b9ab480b7d3a5b3629d8b0966ab488 Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Sun, 29 Nov 2026 02:01:45 +0100 Subject: modules/nvim/plgs/ltex_extra: Patch to recognize `ltex-plus` Normally it would just look for `ltex_plus`. --- ...commands-lsp.lua-Also-support-ltex-plus-a.patch | 31 ++++++++++++++++++++++ .../by-name/nv/nvim/plgs/ltex_extra/default.nix | 8 +++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 modules/by-name/nv/nvim/plgs/ltex_extra/0001-ltex_extra-commands-lsp.lua-Also-support-ltex-plus-a.patch (limited to 'modules/by-name/nv') diff --git a/modules/by-name/nv/nvim/plgs/ltex_extra/0001-ltex_extra-commands-lsp.lua-Also-support-ltex-plus-a.patch b/modules/by-name/nv/nvim/plgs/ltex_extra/0001-ltex_extra-commands-lsp.lua-Also-support-ltex-plus-a.patch new file mode 100644 index 00000000..d739ff0f --- /dev/null +++ b/modules/by-name/nv/nvim/plgs/ltex_extra/0001-ltex_extra-commands-lsp.lua-Also-support-ltex-plus-a.patch @@ -0,0 +1,31 @@ +From ecd59b8bbc6060ec000516b60dbc1de480d6059d Mon Sep 17 00:00:00 2001 +From: Soispha Peetz +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 + diff --git a/modules/by-name/nv/nvim/plgs/ltex_extra/default.nix b/modules/by-name/nv/nvim/plgs/ltex_extra/default.nix index 71250a70..965f6652 100644 --- a/modules/by-name/nv/nvim/plgs/ltex_extra/default.nix +++ b/modules/by-name/nv/nvim/plgs/ltex_extra/default.nix @@ -11,7 +11,13 @@ home-manager.users.soispha.programs.nixvim = { # TODO: package ltex_extra though a module extraPlugins = [ - pkgs.vimPlugins.ltex_extra-nvim + (pkgs.vimPlugins.ltex_extra-nvim.overrideAttrs (final: prev: { + patches = + (prev.patches or []) + ++ [ + ./0001-ltex_extra-commands-lsp.lua-Also-support-ltex-plus-a.patch + ]; + })) ]; plugins.lsp.servers.ltex_plus.onAttach.function = builtins.readFile ./lua/ltex_extra.lua; }; -- cgit v1.3.1