Switch To A Neovim Window In A Lua Script
July 2021
vim.api.nvim_set_current_win(WINDOW_ID)To get the ID of the current window
local id = vim.api.nvim_get_current_win()end of line
vim.api.nvim_set_current_win(WINDOW_ID)To get the ID of the current window
local id = vim.api.nvim_get_current_win()