[x] If the version is v0.10.0 or higher use the new API.
vim.api.nvim_win_set_option and vim.api.nvim_buf_set_option are combined into vim.api.nvim_set_option_value from v0.10.0 onwards.
[!NOTE]
For height and width it can be used vim.o.lines and vim.o.columns if we want to drop the vim.api.nvim_get_option or vim.api.nvim_get_option_value.
Changes made
vim.api.nvim_win_set_option
andvim.api.nvim_buf_set_option
are combined intovim.api.nvim_set_option_value
from v0.10.0 onwards.Reference