home ~ socials ~ projects ~ rss

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
Share link:
https://www.alanwsmith.com/en/2n/ze/pk/zv/?get-the-width-and-height-of-the-current-neovim-window-in-a-lua-script