Get The Width And Height Of The Current Neovim Window In A Lua Script

October 2024
local w = vim.api.nvim_win_get_width(0)
local h = vim.api.nvim_win_get_height(0)

print(w)
print(h)
end of line