Work on select function
parent
2164e73951
commit
45b47b0430
|
|
@ -31,9 +31,9 @@ local M = { ---@type Rabbit.Plugin
|
|||
},
|
||||
}
|
||||
|
||||
local get_buffers = function(winid)
|
||||
local get_buffers = function()
|
||||
M.listing.paths = {}
|
||||
M.listing[winid] = {}
|
||||
M.listing[0] = {}
|
||||
|
||||
local bufs = vim.fn.getbufinfo({ buflisted = 1 })
|
||||
table.sort(bufs, function(a, b)
|
||||
|
|
@ -42,12 +42,12 @@ local get_buffers = function(winid)
|
|||
|
||||
for _, b in ipairs(bufs) do
|
||||
set.add(M.listing.paths, b.name)
|
||||
set.add(M.listing[winid], b.name)
|
||||
set.add(M.listing[0], b.name)
|
||||
end
|
||||
end
|
||||
|
||||
function M.evt.RabbitEnter(_, winid)
|
||||
get_buffers(winid)
|
||||
function M.evt.RabbitEnter()
|
||||
get_buffers()
|
||||
end
|
||||
|
||||
-- ---@param n integer
|
||||
|
|
|
|||
Loading…
Reference in New Issue