From 368221a1e985ab8f48fbb02660fdb04afbdc3ca7 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 26 Feb 2024 22:59:58 -0600 Subject: [PATCH] fix(nvim): correctly load Neo-tree for dir --- dots/.config/nvim/lua/plugins/configs/neo-tree.lua | 3 ++- 1 file changed, 2 insertions(+), 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 dc6a94a8..0b0bf81e 100644 --- a/dots/.config/nvim/lua/plugins/configs/neo-tree.lua +++ b/dots/.config/nvim/lua/plugins/configs/neo-tree.lua @@ -18,7 +18,8 @@ return { once = true, callback = function() local f = vim.fn.expand("%:p") - if vim.fn.isdirectory(f) == 1 then + local isdir = vim.fn.isdirectory(f) + if isdir == 1 or f == "" then require("neo-tree") return true end