Skip to content
Discussion options

You must be logged in to vote

Set height to an integer that’s equal to the number of buffers + borders, something like:

  height = #vim.api.nvim_list_bufs() + 2,

Note that to get an accurate count of the buffer list you’ll need to filter hidden and scratch buffers by iterating the output of the table.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crates51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants