From af40ea0833da9bdbeb64312393c30d8deec28979 Mon Sep 17 00:00:00 2001 From: max397574 Date: Sun, 24 Oct 2021 13:54:07 +0200 Subject: =?UTF-8?q?fix(autocmd):=20=F0=9F=90=9Buse=20autocmd=20to=20fix=20?= =?UTF-8?q?oldfiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/startup.lua b/lua/startup.lua index 27f7c73..4aea5e0 100644 --- a/lua/startup.lua +++ b/lua/startup.lua @@ -315,9 +315,7 @@ function M.setup(update) end vim.g.startup_nvim_loaded = true settings = vim.tbl_deep_extend("force", settings, update or {}) - if vim.fn.argc() == 0 then - require("startup").display() - end + vim.cmd [[autocmd BufRead * lua if vim.fn.argc() == 0 then require("startup").display() end]] end return M -- cgit v1.2.3