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)
|
||||
Reference in New Issue
Block a user