A floating vim.ui.input buffer that auto-resizes to fit its contents.
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: initial cursor position is off input window

r0nsha (Dec 20, 2025, 2:21 AM +0200) f2648dcb 32eb6d98

+4 -2
+4 -2
lua/lib/input.lua
··· 42 42 43 43 -- Write default value and put cursor at the end 44 44 vim.api.nvim_buf_set_lines(self.bufnr, 0, -1, true, { default }) 45 - vim.cmd("startinsert") 46 - vim.api.nvim_win_set_cursor(self.winnr, { 1, vim.str_utfindex(default, "utf-8") + 1 }) 47 45 48 46 self:resize() 49 47 self:autocmds() 50 48 self:mappings() 49 + 50 + vim.api.nvim_win_call(self.winnr, function() 51 + vim.cmd("startinsert!") 52 + end) 51 53 end 52 54 53 55 ---@param result string?