vim.api.nvim_create_autocmd('FileType', { pattern = 'oil', callback = function() vim.opt_local.colorcolumn = '' end, }) return { { 'stevearc/oil.nvim', opts = {}, -- Optional dependencies dependencies = { 'nvim-tree/nvim-web-devicons' }, config = function() require('oil').setup({ use_default_keymaps = false, keymaps = { ['g?'] = 'actions.show_help', [''] = 'actions.select', [''] = 'actions.select_split', [''] = 'actions.select_vsplit', -- this is used to navigate left [''] = 'actions.select_tab', [''] = 'actions.preview', [''] = 'actions.close', [''] = 'actions.refresh', ['-'] = 'actions.parent', ['_'] = 'actions.open_cwd', ['`'] = 'actions.cd', ['~'] = 'actions.tcd', ['gs'] = 'actions.change_sort', ['gx'] = 'actions.open_external', ['g.'] = 'actions.toggle_hidden', }, view_options = { show_hidden = false, }, }) end, }, }