neovim: install oil.nvim plugin
This commit is contained in:
15
neovim/.config/nvim/after/plugin/oil.lua
Normal file
15
neovim/.config/nvim/after/plugin/oil.lua
Normal 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)
|
||||||
@@ -80,6 +80,10 @@ require("packer").startup(function(use)
|
|||||||
|
|
||||||
use({ "ThePrimeagen/harpoon" })
|
use({ "ThePrimeagen/harpoon" })
|
||||||
|
|
||||||
|
use({
|
||||||
|
"stevearc/oil.nvim",
|
||||||
|
})
|
||||||
|
|
||||||
if PACKER_BOOTSTRAP then
|
if PACKER_BOOTSTRAP then
|
||||||
require("packer").sync()
|
require("packer").sync()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user