fix: Scroll window to content on no providers message

This commit is contained in:
hedy
2023-11-29 21:52:59 +08:00
parent eddedcc722
commit c4dc273156

View File

@@ -349,6 +349,7 @@ end
function Sidebar:no_providers_ui() function Sidebar:no_providers_ui()
self.view:rewrite_lines({ 'No supported provider...' }) self.view:rewrite_lines({ 'No supported provider...' })
vim.api.nvim_win_set_cursor(self.view.win, { 1, 0 })
end end
---Currently hovered node in outline ---Currently hovered node in outline