1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:50:04 +08:00

feat(api): add listed_buffers function

This commit is contained in:
wsdjeg 2023-06-27 18:20:25 +08:00
parent 789831cc21
commit 02b3de2e06

View File

@ -43,6 +43,11 @@ function M.set_lines(bufnr, startindex, endindex, replacement)
end
end
function M.listed_buffers() -- {{{
return vim.fn.filter(vim.fn.range(1, vim.fn.bufnr('$')), 'buflisted(v:val)')
end
-- }}}
function M.resize(size, ...)
local arg = {...}
local cmd = arg[1] or 'vertical'