Try another thing

master
Bryan 2024-10-18 09:43:53 -06:00
parent ddc7c4ac27
commit 131a8ff262
1 changed files with 6 additions and 6 deletions

View File

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