vim.api.nvim_win_set_cursor is expecting a window handle but was being passed the current buffer's handle instead