Work on delete function

master
Bryan 2024-10-20 08:54:39 -06:00
parent 44eb89f8ed
commit f320855013
1 changed files with 3 additions and 3 deletions

View File

@ -50,15 +50,15 @@ end
function M.evt.RabbitEnter() function M.evt.RabbitEnter()
get_buffers() get_buffers()
-- vim.print(M.listing[0])
end end
---@param n integer ---@param n integer
function M.func.file_del(n) function M.func.file_del(n)
local idx = set.index(M.listing[0], M.listing[0][n]) local idx = set.index(M.listing[0], M.listing[0][n])
vim.print(M.listing.bufnrs[idx]) vim.print(M.listing.bufnrs[idx])
-- vim.cmd("bd " .. tostring(M.listing.paths[n])) vim.cmd("Bd " .. tostring(M.listing.paths[n]))
-- table.remove(M.listing, n) table.remove(M.listing, n)
require("rabbit").Redraw()
end end
return M return M