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")