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.

remove redundant comments & fix anchor

r0nsha (Jun 26, 2025, 9:44 PM +0300) 75dcd301 956f06b9

+1 -3
+1 -3
lua/wrapinput.lua
··· 38 38 local function get_relative_win_config() 39 39 local curr_win = vim.api.nvim_get_current_win() 40 40 local cursor_row = vim.api.nvim_win_get_cursor(curr_win)[1] 41 - if cursor_row == 1 then 41 + if cursor_row <= 3 then 42 42 return { anchor = "NW", row = 1 } 43 43 else 44 44 return { anchor = "SW", row = 0 } ··· 114 114 115 115 local lines = guesstimate_wrapped_lines(line, config.max_width) 116 116 117 - -- set width 118 117 local lens = vim.tbl_map(function(l) 119 118 return vim.fn.strdisplaywidth(l) 120 119 end, lines) ··· 122 121 width = width > config.max_width and config.max_width or width 123 122 vim.api.nvim_win_set_width(winnr, width + 1) 124 123 125 - -- set height 126 124 local height = #lines 127 125 height = height > config.max_height and config.max_height or height 128 126 vim.api.nvim_win_set_height(winnr, height)