Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/plugin-view/bindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions lua/plugin-view/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down