Get The Buffer Number Of A Specific Neovim Window

Code
nvim_win_get_buf(WINDOW_NUMBER)

Where `WINDOW_NUMBER`` is the number of the window you want to get the buffer number for. It can be set to zero to get the buffer number of the current window.

To see the value on the command line, use:

Code
:echo nvim_win_get_buf(WINDOW_NUMBER)