neovim: install oil.nvim plugin

This commit is contained in:
2023-11-29 22:16:48 +03:00
parent 3d63df1200
commit fcef73cd98
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
local oil = require("oil")
oil.setup({
default_file_explorer = false,
skip_confirm_for_simple_edits = true,
columns = {},
})
vim.keymap.set("n", "<leader>o", function()
if vim.bo.filetype == "oil" then
oil.close()
else
oil.open()
end
end)

View File

@@ -80,6 +80,10 @@ require("packer").startup(function(use)
use({ "ThePrimeagen/harpoon" })
use({
"stevearc/oil.nvim",
})
if PACKER_BOOTSTRAP then
require("packer").sync()
end