Try another thing

master
Bryan 2024-10-18 09:52:17 -06:00
parent 131a8ff262
commit 5d7c45fc70
1 changed files with 6 additions and 6 deletions

View File

@ -31,15 +31,15 @@ local M = { ---@type Rabbit.Plugin
}, },
} }
function M.evt.RabbitEnter(_, _) 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 })