mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
30 lines
1.2 KiB
Lua
30 lines
1.2 KiB
Lua
return {
|
|
{
|
|
'barrettruth/canola.nvim',
|
|
branch = 'canola',
|
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
|
init = function()
|
|
vim.g.canola = {
|
|
columns = { 'icon', 'git_status' },
|
|
delete = { wipe = false, recursive = true},
|
|
hidden = { enabled = false },
|
|
keymaps = {
|
|
['g?'] = { callback = 'actions.show_help', mode = 'n' },
|
|
['<CR>'] = 'actions.select',
|
|
['<C-v>'] = { callback = 'actions.select', opts = { vertical = true } },
|
|
['<C-x>'] = { callback = 'actions.select', opts = { horizontal = true } },
|
|
['<C-p>'] = 'actions.preview',
|
|
['<C-c>'] = { callback = 'actions.close', mode = 'n' },
|
|
['-'] = { callback = 'actions.parent', mode = 'n' },
|
|
['g.'] = { callback = 'actions.toggle_hidden', mode = 'n' },
|
|
},
|
|
}
|
|
map('n', '-', '<cmd>Canola<cr>')
|
|
map('n', '<leader>e', '<cmd>Canola<cr>')
|
|
end,
|
|
},
|
|
{
|
|
'barrettruth/canola-collection',
|
|
dependencies = { 'barrettruth/canola.nvim' },
|
|
},
|
|
}
|