mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim
This commit is contained in:
parent
35c3cc49d5
commit
08bf9aad64
14 changed files with 264 additions and 110 deletions
|
|
@ -17,4 +17,14 @@ function M.CloseAll()
|
|||
end
|
||||
end
|
||||
|
||||
function M.GetLoaded()
|
||||
local loaded = {}
|
||||
for i, hnd in ipairs(vim.api.nvim_list_bufs()) do
|
||||
if vim.api.nvim_buf_is_loaded(hnd) then
|
||||
loaded[i] = hnd
|
||||
end
|
||||
end
|
||||
return loaded
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue