From 7730c552fc890f3a653a164d793077ed3f004929 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 8 Sep 2025 21:56:40 +0200 Subject: [PATCH] nvim: Revert to upstream wrapping plugin The plugin fixed my heuristics issue upstream allowing me to make use of it again for all my writing needs. --- nvim/.config/nvim/lazy-lock.json | 2 +- nvim/.config/nvim/lua/plugins/prose.lua | 30 +------------------------ 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 7c6af64..8268a23 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -101,7 +101,7 @@ "vim-spellsync": { "branch": "master", "commit": "ea9f431483ceb40ede8bd5b126a03eccd49b1bc0" }, "wezterm.nvim": { "branch": "main", "commit": "f73bba23ab4becd146fa2d0a3a16a84b987eeaca" }, "which-key.nvim": { "branch": "main", "commit": "fcbf4eea17cb299c02557d576f0d568878e354a4" }, - "wrapping.nvim": { "branch": "feat/nontextual-detection-option", "commit": "cf6e758c04899cbfaa4f4eadccbb91d2439a6c97" }, + "wrapping.nvim": { "branch": "master", "commit": "bbf1b6e4d6a94f1c362125dc927284086e9fad7d" }, "zen-mode.nvim": { "branch": "main", "commit": "04b52674b8c800f8b7d4609e8bd8d0212e3ffa79" }, "zk-nvim": { "branch": "main", "commit": "fd1ab2239ed85ca51051c094a49a280f4ed76bb2" } } diff --git a/nvim/.config/nvim/lua/plugins/prose.lua b/nvim/.config/nvim/lua/plugins/prose.lua index b6b2b5e..a4dcf9e 100644 --- a/nvim/.config/nvim/lua/plugins/prose.lua +++ b/nvim/.config/nvim/lua/plugins/prose.lua @@ -85,40 +85,12 @@ local prose_plugs = { }, }, { - "marty-oehme/wrapping.nvim", - branch = "feat/nontextual-detection-option", + "andrewferrier/wrapping.nvim", opts = { create_keymaps = false, notify_on_switch = false, auto_set_mode_filetype_allowlist = prose_ft, softener = { quarto = 2.0, markdown = 2.0, djot = 2.0 }, - nontextual_heuristic = function() - local nb = vim.tbl_get(vim.env, "ZK_NOTEBOOK_DIR") or vim.tbl_get(vim.env, "WIKIROOT") - if nb then - if vim.fn.expand("%:p:h"):find(nb) then - return false - end - return true - end - local get_clients - - if vim.fn.has("nvim-0.10") == 1 then - get_clients = vim.lsp.get_clients - else - get_clients = vim.lsp.get_active_clients - end - - for _, client in pairs(get_clients({ bufnr = 0 })) do - if - client.server_capabilities.definitionProvider - or client.server_capabilities.signatureHelpProvider - then - return true - end - end - - return false - end, }, ft = prose_ft, keys = {