From 3f8a2e487491eda54f37973b860a060644a526c1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 9 Feb 2024 02:18:12 -0600 Subject: [PATCH] refactor(nvim): return `true` from autocmd to degregister it --- dots/.config/nvim/lua/plugins/configs/neo-tree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/neo-tree.lua b/dots/.config/nvim/lua/plugins/configs/neo-tree.lua index 4e41c4fe..5d2c7b80 100644 --- a/dots/.config/nvim/lua/plugins/configs/neo-tree.lua +++ b/dots/.config/nvim/lua/plugins/configs/neo-tree.lua @@ -21,7 +21,7 @@ return { if vim.fn.isdirectory(f) ~= 0 then vim.cmd("Neotree current dir=" .. f) -- neo-tree is loaded now, delete the init autocmd - vim.api.nvim_clear_autocmds({ group = "NeoTreeInit" }) + return true end end, })