nvim: add oil.nvim

This commit is contained in:
Łukasz Pankowski 2024-04-16 00:12:32 +02:00
parent c9ccef2f8a
commit 118211652b
2 changed files with 13 additions and 0 deletions

View File

@ -29,6 +29,7 @@
"nvim-treesitter": { "branch": "master", "commit": "ef267f0c285928ea3a0d3362a260a0728fd4a146" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "c180aef9a197e9fe64cc285171910b8ea1400952" },
"nvim-web-devicons": { "branch": "master", "commit": "6e355632387a085f15a66ad68cf681c1d7374a04" },
"oil.nvim": { "branch": "master", "commit": "e462a3446505185adf063566f5007771b69027a1" },
"onenord.nvim": { "branch": "main", "commit": "ce4aacbaa50b6b44a3e69eee6a3f380e96ccdbd0" },
"orgmode": { "branch": "master", "commit": "5875037fa9c7c8e0abf29cd69510150355d248a0" },
"plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" },

View File

@ -25,6 +25,18 @@ return {
dependencies = { "nvim-tree/nvim-web-devicons" },
},
{
'stevearc/oil.nvim',
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function(opts)
require("oil").setup({
default_file_explorer = true,
delete_to_trash = true,
})
vim.keymap.set("n", "-", "<cmd>Oil<CR>", { desc = "Open parent directory" })
end
},
{
'Wansmer/treesj',
dependencies = { 'nvim-treesitter/nvim-treesitter' },