From f0ea2b3559052bd5fc4f15422e4daf203ae94ae3 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:06:51 +0100 Subject: [PATCH] never add trailing slashes for folders --- .../neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua | 5 +++++ 1 file changed, 5 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 009f3f7..f4d7310 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 @@ -113,12 +113,17 @@ return { reload_on_bufenter = true, -- Allows using vim.ui.select for various operation instead of the defaut implementation select_prompts = true, + view = { -- dynamically get the width of the tree width = get_width, -- Always open the tree on the left side of the screen side = "left", -- Never display the number line for the tree number = false, + }, + renderer = { + -- Never add trailing slashes for folders name + add_trailing = false, }) local whichKey = require("which-key")