plugins.dropbar.settings.symbol.preview.reorient
Function to reorient the source window when previewing symbol given the source window
win
and the range of the symbol range
.
Type: null or raw lua code
Default:
null
Plugin default: lib.nixvim.mkRaw "function(_, range)\n local invisible = range['end'].line - vim.fn.line('w$') + 1\n if invisible > 0 then\n local view = vim.fn.winsaveview() --[[@as vim.fn.winrestview.dict]]\n view.topline = math.min(\n view.topline + invisible,\n math.max(1, range.start.line - vim.wo.scrolloff + 1)\n )\n vim.fn.winrestview(view)\n end\nend\n"
Declared by: