An option to control weather change root_folder when root_folder be clicked.
alex-courtis opened this issue · comments
Alexander Courtis commented
Discussed in #2697
Originally posted by Sologala March 8, 2024
Is there any configrationes to disable the response of root_folder's clicking?
I just set renderer.root_folder_label = false
to unrender the root_folder in tree view.
But that is not what i want. I want that that tree show the current root_folder but it will not respond to any operation.
Alexander Courtis commented
Open root folder will always change directory up. That is desirable and must remain the default.
This one will need to be a new boolean actions.open_file
option or an optional argument to node.open.edit
. The former is consistent, with the method taking no arguments.
*nvim-tree.actions.open_file.root*
Root may be opened, changing up a directory.
Type: `boolean`, Default: `true`