diff --git a/config/nvim/lua/plugins/oil.lua b/config/nvim/lua/plugins/oil.lua index a2c0699..d91f265 100644 --- a/config/nvim/lua/plugins/oil.lua +++ b/config/nvim/lua/plugins/oil.lua @@ -1,33 +1,29 @@ return { - 'barrettruth/oil.nvim', - dependencies = { - 'nvim-tree/nvim-web-devicons', - { - 'malewicz1337/oil-git.nvim', - opts = { - show_ignored_files = false, - show_ignored_directories = false, - debounce_ms = 300, - }, - }, + { + 'barrettruth/canola.nvim', + branch = 'canola', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + init = function() + vim.g.canola = { + columns = { 'icon', 'git_status' }, + hidden = { enabled = false }, + keymaps = { + ['g?'] = { callback = 'actions.show_help', mode = 'n' }, + [''] = 'actions.select', + [''] = { callback = 'actions.select', opts = { vertical = true } }, + [''] = { callback = 'actions.select', opts = { horizontal = true } }, + [''] = 'actions.preview', + [''] = { callback = 'actions.close', mode = 'n' }, + ['-'] = { callback = 'actions.parent', mode = 'n' }, + ['g.'] = { callback = 'actions.toggle_hidden', mode = 'n' }, + }, + } + map('n', '-', 'Canola') + map('n', 'e', 'Canola') + end, }, - opts = { - default_file_explorer = true, - columns = { 'icon' }, - view_options = { show_hidden = true }, - keymaps = { - ['g?'] = 'actions.show_help', - [''] = 'actions.select', - [''] = 'actions.select_vsplit', - [''] = 'actions.select_split', - [''] = 'actions.preview', - [''] = 'actions.close', - ['-'] = 'actions.parent', - ['g.'] = 'actions.toggle_hidden', - }, + { + 'barrettruth/canola-collection', + dependencies = { 'barrettruth/canola.nvim' }, }, - init = function() - map('n', '-', 'Oil') - map('n', 'e', 'Oil') - end, }