From 701b692380f6162ce6ccac339f27d69610bc51dc Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:03:48 +0100 Subject: [PATCH] moved the width definition --- .../neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ae5e4eb..4e1fa8e 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 @@ -96,9 +96,6 @@ return { require("nvim-tree").setup({ auto_reload_on_write = true, sort_by = "case_sensitive", - view = { - width = get_width, - }, filters = { dotfiles = false, }, @@ -106,6 +103,8 @@ return { threshold = vim.log.levels.INFO, absolute_path = false, }, + -- dynamically get the width of the tree + width = get_width, }) local whichKey = require("which-key")