From 3b734c18068a0e8f9b98107c10295aaf53d5a0a9 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:04:20 +0100 Subject: [PATCH] added an option to move the cursor to the correct location in the tree --- .../neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua b/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua index e09f515..d9fd7d2 100644 --- a/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua +++ b/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua @@ -105,6 +105,8 @@ return { -- Notifies only the relative path instead of the absolute absolute_path = false, }, + -- Move to the first letter of each folder/files instead of the beginning of the line + hijack_cursor = true, -- dynamically get the width of the tree width = get_width, })