diff options
author | max397574 <[email protected]> | 2021-10-24 13:54:07 +0200 |
---|---|---|
committer | max397574 <[email protected]> | 2021-10-24 13:54:07 +0200 |
commit | af40ea0833da9bdbeb64312393c30d8deec28979 (patch) | |
tree | 09effc18f4e7e289ca563bc4fccbb7f1f7a120aa | |
parent | 552f2bd99de6962e9d59f88ab301825b0ee1c5a2 (diff) |
fix(autocmd): 🐛use autocmd to fix oldfiles
-rw-r--r-- | lua/startup.lua | 4 |
1 files changed, 1 insertions, 3 deletions
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 |