feat: run file picker when Neovim is started without argument
This commit is contained in:
parent
1e07349e42
commit
f2be216a8b
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue