feat: run file picker when Neovim is started without argument

This commit is contained in:
Oliver Ladner 2026-01-26 12:34:11 +01:00
commit f2be216a8b

View file

@ -12,3 +12,10 @@ require("weeheavy.prefs")
-- Auto commands -- Auto commands
require("weeheavy.autocmd") require("weeheavy.autocmd")
-- Run mini `Pick files` when Neovim was started without a file name
if vim.fn.argc() == 0 then
vim.defer_fn(function()
vim.cmd("Pick files")
end, 0)
end