Skip to content

Commit

Permalink
fix: set cursor to top when opening view. Fixes #165
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 29, 2022
1 parent 9aaf3bd commit c20f38e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/noice/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c20f38e

Please sign in to comment.