change oil to be lazy

This commit is contained in:
Ray Andrew 2023-08-02 18:38:10 -05:00
parent 77305f6043
commit c434ebd510
No known key found for this signature in database
GPG key ID: E2E8D63137DD489E
2 changed files with 10 additions and 3 deletions

View file

@ -220,6 +220,16 @@ return {
{
"stevearc/oil.nvim",
cmd = { "Oil" },
keys = {
{
"-",
function()
require("oil").open()
end,
desc = "Open parent directory",
},
},
opts = {
default_file_explorer = true,
restore_win_options = true,

View file

@ -132,6 +132,3 @@ Util.map("t", "<c-_>", "<cmd>close<cr>", { desc = "which_key_ignore" })
-- lazy
Util.map("n", "<leader>l", "<cmd>Lazy<cr>", { desc = "Lazy" })
-- oil
vim.keymap.set("n", "-", require("oil").open, { desc = "Open parent directory" })