Before this commit, empty headings are taken into account:
# a normal heading
below is not a good heading:
#
below is also not a good heading:
##
These should not be listed in the outline.
New lua API function: follow_cursor (supports opts.focus_outline).
This sets location in outline to match location in code.
New keymap: restore_location (C-g) by default.
This provides the same functionality as follow_cursor.
I've also refactored other lua API functions for consistency of using
`opts.focus_outline`. If opts is not provided, focus_outline is
defaulted to true. To change this behaviour, set it to false.
simrat39/symbols-outline.nvim#119
Rather than using another config option, this should be the default,
expected behaviour for auto_preview.
Also (another difference to the PR implementation is that) there is no
need to subscribe to both CursorHold and CursorMoved.
Fixsimrat39/symbols-outline.nvim#176
I was going to pull @enddeadroyal's commit from their
'bugfix/symbol-hover-misplacement' branch in their fork but they changed
indentation so I had to apply the relevant changes myself instead.
However, credits for this fix goes to @enddeadroyal from the issue
commit in 176.
Also fixed the "No info available" markdown as it wasn't rendering
properly for me without a space after the '###'.
Default to not wrapping long function names etc that are too big for the window.
If wrap=true is set, use some sane linebreak/breakindent/showbreak
options to wrap with an indent at the current indent level of the UI
tree, instead of just wrapping back to the far left side of the window.