Work on delete function
parent
2aa6da15c5
commit
e17a22d88c
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue