mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:40:04 +08:00
feat(api): add listed_buffers
function
This commit is contained in:
parent
789831cc21
commit
02b3de2e06
@ -43,6 +43,11 @@ function M.set_lines(bufnr, startindex, endindex, replacement)
|
|||||||
end
|
end
|
||||||
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, ...)
|
function M.resize(size, ...)
|
||||||
local arg = {...}
|
local arg = {...}
|
||||||
local cmd = arg[1] or 'vertical'
|
local cmd = arg[1] or 'vertical'
|
||||||
|
Loading…
Reference in New Issue
Block a user