fix(nvim): correctly load Neo-tree for dir

This commit is contained in:
Price Hiller 2024-02-26 22:59:58 -06:00
parent e8a8110380
commit 368221a1e9
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -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