home ~ projects ~ socials

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

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 --

References