We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c669a commit 271a6faCopy full SHA for 271a6fa
lua/orgmode/agenda/init.lua
@@ -90,10 +90,6 @@ function Agenda:render()
90
vim.w.org_window_pos = nil
91
end
92
93
-
94
- if #self.views > 1 then
95
- vim.fn.cursor({ 1, 0 })
96
- end
97
98
99
function Agenda:agenda(opts)
@@ -174,7 +170,11 @@ function Agenda:_build_custom_commands()
174
170
table.insert(views, AgendaTypes[agenda_type.type]:new(opts))
175
171
176
172
self.views = views
177
- return self:prepare_and_render()
173
+ return self:prepare_and_render():next(function()
+ if #self.views > 1 then
+ vim.fn.cursor({ 1, 0 })
+ end
+ end)
178
end,
179
})
180
0 commit comments