-- Replace netrw with Oil to work with the file hierarchy as a regular vim -- buffer. vim.pack.add { { name = 'oil', src = 'https://github.com/stevearc/oil.nvim', }, { name = 'mini.icons', src = 'https://github.com/nvim-mini/mini.icons', }, } require('oil').setup { keymaps = { -- Clashes with tmux navigator [''] = false, [''] = false, -- Remap refresh to a new key, since we just disabled it. [''] = 'actions.refresh', }, } vim.keymap.set('n', '\\', 'Oil --float', { desc = 'Open parent directory in floating window' }) vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' })