fix(nvim): correctly load Neo-tree for dir
This commit is contained in:
parent
e8a8110380
commit
368221a1e9
@ -18,7 +18,8 @@ return {
|
|||||||
once = true,
|
once = true,
|
||||||
callback = function()
|
callback = function()
|
||||||
local f = vim.fn.expand("%:p")
|
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")
|
require("neo-tree")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user