mirror of
https://github.com/itme-brain/nvim.git
synced 2026-05-08 07:00:13 -04:00
updated
This commit is contained in:
parent
17bf7e4973
commit
7d72471237
17 changed files with 297 additions and 538 deletions
29
lua/plugins/oil.lua
Normal file
29
lua/plugins/oil.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
return {
|
||||
{
|
||||
"stevearc/oil.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
lazy = false,
|
||||
config = function()
|
||||
local oil = require("oil")
|
||||
|
||||
oil.setup({
|
||||
default_file_explorer = true,
|
||||
skip_confirm_for_simple_edits = true,
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
float = {
|
||||
padding = 4,
|
||||
max_width = 100,
|
||||
max_height = 30,
|
||||
border = "rounded",
|
||||
},
|
||||
})
|
||||
|
||||
require("which-key").add({
|
||||
{ "-", "<cmd>Oil<cr>", desc = "Open Parent Dir" },
|
||||
{ "<leader>e", oil.toggle_float, desc = "File Explorer" },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue