fix: do not open file explorer on empty startup

This commit is contained in:
Oliver Ladner 2026-04-22 12:23:48 +02:00
commit 4fc62b3779

View file

@ -14,8 +14,8 @@ require("weeheavy.prefs")
require("weeheavy.autocmd")
-- Run floating Oil window when Neovim was started without a file name
if vim.fn.argc() == 0 then
vim.defer_fn(function()
vim.cmd("Oil --float")
end, 0)
end
-- if vim.fn.argc() == 0 then
-- vim.defer_fn(function()
-- vim.cmd("Oil --float")
-- end, 0)
-- end