diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-11-29 02:01:45 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-11-29 02:02:19 +0100 |
| commit | 6e848af281b9ab480b7d3a5b3629d8b0966ab488 (patch) | |
| tree | 7451573624052bbe1f9dfddc369c54d31066c47b /modules | |
| parent | modules/nvim/options: Include Swedish in the `spelllang` setting (diff) | |
| download | nixos-config-6e848af281b9ab480b7d3a5b3629d8b0966ab488.zip | |
Normally it would just look for `ltex_plus`.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/by-name/nv/nvim/plgs/ltex_extra/0001-ltex_extra-commands-lsp.lua-Also-support-ltex-plus-a.patch | 31 | ||||
| -rw-r--r-- | modules/by-name/nv/nvim/plgs/ltex_extra/default.nix | 8 |
2 files changed, 38 insertions, 1 deletions
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 <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 + 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; }; |
