simrat39 / symbols-outline.nvim

A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
MIT License
1.85k stars 100 forks source link

[Feature] Add 'hijack_cursor' option from nvim-tree #166

Open hernancerm opened 2 years ago

hernancerm commented 2 years ago

The plugin nvim-tree has the option nvim-tree.hijack_cursor which is documented as follows:

*nvim-tree.hijack_cursor*
Keeps the cursor on the first letter of the filename when moving in the tree.
  Type: `boolean`, Default: `false`

I think having that feature in this plugin would be nice for user experience. Basically, when moving the cursor among the symbols using j and k, the cursor would be positioned in the first character of the symbol name.

Demo of 'hijack_cursor' option in nvim-tree (only j and k are used to navigate) ![Screen Recording 2022-09-13 at 11 03 09 p m](https://user-images.githubusercontent.com/42811720/190056933-fa82bc42-27d6-414d-932a-a7a2bc2d0fc2.gif)