fix(neo-tree): during init check global argslist instead of window-local

This commit is contained in:
Folke Lemaitre committed 2023-10-12 11:48:02 +02:00
1 parent 4ea1c6865e
commit 8fbde2c366
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ return {
vim.cmd([[Neotree close]]) vim.cmd([[Neotree close]])
end, end,
init = function() init = function()
if vim.fn.argc() == 1 then if vim.fn.argc(-1) == 1 then
local stat = vim.loop.fs_stat(vim.fn.argv(0)) local stat = vim.loop.fs_stat(vim.fn.argv(0))
if stat and stat.type == "directory" then if stat and stat.type == "directory" then
require("neo-tree") require("neo-tree")