plugins.dropbar.settings.symbol.jump.reorient

Function to reorient the source window when jumping to 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(win, range)\n local view = vim.fn.winsaveview()\n local win_height = vim.api.nvim_win_get_height(win)\n local topline = range.start.line - math.floor(win_height / 4)\n if\n topline > view.topline\n and topline + win_height < vim.fn.line('$')\n then\n view.topline = topline\n vim.fn.winrestview(view)\n end\nend\n"

Declared by: