From c0f1e5aad80e4a3e595e8a6b0279447a7b5d0c88 Mon Sep 17 00:00:00 2001 From: walshfinnian Date: Sat, 23 May 2026 18:37:55 +0100 Subject: [PATCH 1/2] fix: correct plugin deletion --- lua/plugin-view/bindings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugin-view/bindings.lua b/lua/plugin-view/bindings.lua index 88b1986..1025d5e 100644 --- a/lua/plugin-view/bindings.lua +++ b/lua/plugin-view/bindings.lua @@ -32,7 +32,7 @@ M.setup = function(buf, win) vim.notify("Plugin not found in current line", vim.log.levels.ERROR) return end - vim.pack.delete { plugin_name } + vim.pack.del { plugin_name } end) end From d3595c194118b66498b63648afcf5259cf18355a Mon Sep 17 00:00:00 2001 From: walshfinnian Date: Sat, 23 May 2026 20:56:20 +0100 Subject: [PATCH 2/2] fix: correct spacing calculations Use vim.fn.strdisplaywidth to calculate the space taken up by plugin names and versions in case niche long characters are used --- lua/plugin-view/utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugin-view/utils.lua b/lua/plugin-view/utils.lua index 78284ff..d767d1a 100644 --- a/lua/plugin-view/utils.lua +++ b/lua/plugin-view/utils.lua @@ -71,8 +71,8 @@ M.populate_buf = function(buf, plugins) local active = plugin.active and "Yes" or "No" -- Pad columns to fixed width - name = name .. string.rep(" ", name_width - #name) - version = version .. string.rep(" ", version_width - #version) + name = name .. string.rep(" ", name_width - vim.fn.strdisplaywidth(name)) + version = version .. string.rep(" ", version_width - vim.fn.strdisplaywidth(version)) local line = name .. " " .. version .. " " .. active table.insert(lines, line)