From e1e358c806415fb84d43662fa9d0f90c23a5d452 Mon Sep 17 00:00:00 2001 From: przepompownia Date: Fri, 7 Nov 2025 22:07:50 +0100 Subject: [PATCH] feat: load command definitions in `plugin` directory --- lua/nvim-tree.lua | 5 +---- plugin/nvim-tree.lua | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 plugin/nvim-tree.lua diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index 4b8389e93a0..18858af14f3 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -759,10 +759,7 @@ function M.setup(conf) setup_autocommands(opts) - if vim.g.NvimTreeSetup ~= 1 then - -- first call to setup - require("nvim-tree.commands").setup() - else + if vim.g.NvimTreeSetup == 1 then -- subsequent calls to setup M.purge_all_state() end diff --git a/plugin/nvim-tree.lua b/plugin/nvim-tree.lua new file mode 100644 index 00000000000..e9a36dc7d86 --- /dev/null +++ b/plugin/nvim-tree.lua @@ -0,0 +1 @@ +require("nvim-tree.commands").setup()