Get The Buffer Number For The Current Window In Neovim
You can get the buffer number of the current Neovim window with :
lua
nvim_get_current_buf()
To see the number directly in the Neovim command line use :
lua
:echo nvim_get_current_buf()