nvim-tree/nvim-tree.lua

How to keep the cursor on the first letter of the filename when a single mouse-click or a double mouse-click

Closed this issue · 3 comments

How to set keeping the cursor on the first letter of the filename always when a single mouse-click a tree node or a double mouse-click a tree node?
or
How to disable the cursor move to other positions in a file name, when a single mouse-click a tree node or a double mouse-click a tree node?
In now nvim-tree, When the mouse clicks at file name other positions, the entire tree will move along with the cursor. This is not conducive to navigating and browsing the entire tree.

Image

The :help nvim-tree.hijack_cursor option should resolve this issue.

The :help nvim-tree.hijack_cursor option should resolve this issue.

I try it, no effect when a single mouse-click a tree node or a double mouse-click a tree node

The :help nvim-tree.hijack_cursor option should resolve this issue.

I try it, no effect when a single mouse-click a tree node or a double mouse-click a tree node

That's not good.

I'd be grateful if you post full Bug Report so that we may replicate and fix this.