Get The Buffer Number For The Current Window In Neovim

You can get the buffer number of the current Neovim window with:

Code
nvim_get_current_buf()

To see the number directly in the Neovim command line use:

Code
:echo nvim_get_current_buf()