add oil nvim

This commit is contained in:
Diachk 2024-12-31 22:25:27 +00:00
parent ee9b173a11
commit e2504f0d78
2 changed files with 12 additions and 0 deletions

View file

@ -69,3 +69,6 @@ vim.keymap.set("v", "<leader>ai", function()
vim.cmd("AvanteEdit")
feed_keys("Do what the first comment says. Do nothing if there is no actionable comment.<C-s>", "i")
end, { desc = "AI implement what the comment says" })
-- Oil file explorer
vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })

9
lua/plugins/oil.lua Normal file
View file

@ -0,0 +1,9 @@
return {
"stevearc/oil.nvim",
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
dependencies = { { "echasnovski/mini.icons", opts = {} } },
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
}