feat: start Oil instead of mini pick when no filename
This commit is contained in:
parent
b248c5a7b3
commit
3bcf58333f
1 changed files with 2 additions and 2 deletions
|
|
@ -13,9 +13,9 @@ 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
|
-- Run floating Oil window when Neovim was started without a file name
|
||||||
if vim.fn.argc() == 0 then
|
if vim.fn.argc() == 0 then
|
||||||
vim.defer_fn(function()
|
vim.defer_fn(function()
|
||||||
vim.cmd("Pick files")
|
vim.cmd("Oil --float")
|
||||||
end, 0)
|
end, 0)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue