mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 01:08:59 +02:00
fix(neo-tree): during init check global argslist instead of window-local
This commit is contained in:
parent
4ea1c6865e
commit
8fbde2c366
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue