Try another thing
parent
ddc7c4ac27
commit
131a8ff262
|
|
@ -17,7 +17,7 @@ local M = { ---@type Rabbit.Plugin
|
||||||
|
|
||||||
---@param p Rabbit.Plugin.Buffers
|
---@param p Rabbit.Plugin.Buffers
|
||||||
init = function(p)
|
init = function(p)
|
||||||
-- p.listing[0] = {}
|
p.listing[0] = {}
|
||||||
p.listing.paths = {}
|
p.listing.paths = {}
|
||||||
-- p.listing.persist = {} --set.clean(set.read(p.memory))
|
-- p.listing.persist = {} --set.clean(set.read(p.memory))
|
||||||
-- p.listing.opened = {}
|
-- p.listing.opened = {}
|
||||||
|
|
@ -35,11 +35,11 @@ function M.evt.RabbitEnter(_, _)
|
||||||
M.listing.paths = nil
|
M.listing.paths = nil
|
||||||
M.listing[0] = nil
|
M.listing[0] = nil
|
||||||
local bufs = vim.api.nvim_list_bufs()
|
local bufs = vim.api.nvim_list_bufs()
|
||||||
for _, b in ipairs(bufs) do
|
-- for _, b in ipairs(bufs) do
|
||||||
local path = vim.api.nvim_buf_get_name(b)
|
-- local path = vim.api.nvim_buf_get_name(b)
|
||||||
set.add(M.listing.paths, path)
|
-- set.add(M.listing.paths, path)
|
||||||
set.add(M.listing[0], path)
|
-- set.add(M.listing[0], path)
|
||||||
end
|
-- end
|
||||||
end
|
end
|
||||||
-- function M.evt.BufEnter(evt, winid)
|
-- function M.evt.BufEnter(evt, winid)
|
||||||
-- local is_listed = vim.api.nvim_get_option_value("buflisted", { buf = evt.buf })
|
-- local is_listed = vim.api.nvim_get_option_value("buflisted", { buf = evt.buf })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue