From f2be216a8bb1e651dc2c72f7009c768ddfe71a68 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 26 Jan 2026 12:34:11 +0100 Subject: [PATCH] feat: run file picker when Neovim is started without argument --- lua/weeheavy/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/weeheavy/init.lua b/lua/weeheavy/init.lua index c43f64c..e1923ab 100644 --- a/lua/weeheavy/init.lua +++ b/lua/weeheavy/init.lua @@ -12,3 +12,10 @@ require("weeheavy.prefs") -- Auto commands 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