Try another thing
parent
131a8ff262
commit
5d7c45fc70
|
|
@ -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 })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue