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

This commit is contained in:
Folke Lemaitre
2023-10-11 14:27:41 +02:00
parent 286a6fb8ae
commit 0f0a81c175

View File

@ -29,7 +29,7 @@ return {
vim.cmd([[Neotree close]])
end,
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))
if stat and stat.type == "directory" then
require("neo-tree")