Work on delete function

master
Bryan 2024-10-20 08:32:31 -06:00
parent 2aa6da15c5
commit e17a22d88c
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ local M = { ---@type Rabbit.Plugin
switch = "b",
listing = {},
empty_msg = "No opened buffers",
skip_same = true,
skip_same = false,
keys = {},
evt = {},
@ -41,6 +41,10 @@ local get_buffers = function()
-- set.add(M.listing[0], b.name)
table.insert(M.listing[0], b.name)
table.insert(M.listing.bufnrs, b.bufnr)
table.insert(M.listing[0], M.listing[0][1])
table.insert(M.listing.bufnrs, M.listing.bufnrs[1])
table.remove(M.listing[0], 1)
table.remove(M.listing.bufnrs, 1)
end
end