fix: do not open file explorer on empty startup
This commit is contained in:
parent
106c5e1b12
commit
4fc62b3779
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue