diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua index 9a5d98d3..2082da9f 100644 --- a/lua/custom/plugins/oil.lua +++ b/lua/custom/plugins/oil.lua @@ -4,7 +4,19 @@ return { -- Optional dependencies dependencies = { 'nvim-tree/nvim-web-devicons' }, config = function() - require('oil').setup() + require('oil').setup { + skip_confirm_for_simple_edits = true, + delete_to_trash = true, + view_options = { + show_hidden = true, + is_always_hidden = function(name) + if name == '.git' then + return true + end + return false + end, + }, + } vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) end, }