SmiteshP / nvim-navbuddy

A simple popup display that provides breadcrumbs feature using LSP server
Apache License 2.0
770 stars 30 forks source link

fix: Set parent node's memory in actions.root #35

Closed aaronkollasch closed 1 year ago

aaronkollasch commented 1 year ago

I thought the trail to the last node was remembered when running actions.root (#32), but actually, each parent's memory index was set to 1.

This PR fixes that issue by setting the each parent's memory to focus_node.index, the same as if h was pressed repeatedly to reach the root.