From c20f38e7c1b6d368af2bb599667b473879316c89 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 29 Oct 2022 11:29:03 +0200 Subject: [PATCH] fix: set cursor to top when opening view. Fixes #165 --- lua/noice/view/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/noice/view/init.lua b/lua/noice/view/init.lua index a26ff77..9ddd331 100644 --- a/lua/noice/view/init.lua +++ b/lua/noice/view/init.lua @@ -197,6 +197,7 @@ function View:set_win_options(win) if self._opts.win_options then require("nui.utils")._.set_win_options(win, self._opts.win_options) end + vim.api.nvim_win_set_cursor(win, { 1, 0 }) end ---@param buf number buffer number