mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
add oil nvim
This commit is contained in:
parent
ee9b173a11
commit
e2504f0d78
2 changed files with 12 additions and 0 deletions
|
|
@ -69,3 +69,6 @@ vim.keymap.set("v", "<leader>ai", function()
|
||||||
vim.cmd("AvanteEdit")
|
vim.cmd("AvanteEdit")
|
||||||
feed_keys("Do what the first comment says. Do nothing if there is no actionable comment.<C-s>", "i")
|
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" })
|
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
9
lua/plugins/oil.lua
Normal 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
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue