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.
This commit is contained in:
Marty Oehme 2025-09-08 21:56:40 +02:00
parent 2ee772c604
commit 7730c552fc
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 2 additions and 30 deletions

View file

@ -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" }
}

View file

@ -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 = {