mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 07:04:47 +00:00
canola!
This commit is contained in:
parent
2f9518f88a
commit
8ed16afd7d
1 changed files with 25 additions and 29 deletions
|
|
@ -1,33 +1,29 @@
|
||||||
return {
|
return {
|
||||||
'barrettruth/oil.nvim',
|
{
|
||||||
dependencies = {
|
'barrettruth/canola.nvim',
|
||||||
'nvim-tree/nvim-web-devicons',
|
branch = 'canola',
|
||||||
{
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
'malewicz1337/oil-git.nvim',
|
init = function()
|
||||||
opts = {
|
vim.g.canola = {
|
||||||
show_ignored_files = false,
|
columns = { 'icon', 'git_status' },
|
||||||
show_ignored_directories = false,
|
hidden = { enabled = false },
|
||||||
debounce_ms = 300,
|
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,
|
||||||
},
|
},
|
||||||
opts = {
|
{
|
||||||
default_file_explorer = true,
|
'barrettruth/canola-collection',
|
||||||
columns = { 'icon' },
|
dependencies = { 'barrettruth/canola.nvim' },
|
||||||
view_options = { show_hidden = true },
|
|
||||||
keymaps = {
|
|
||||||
['g?'] = 'actions.show_help',
|
|
||||||
['<CR>'] = 'actions.select',
|
|
||||||
['<C-v>'] = 'actions.select_vsplit',
|
|
||||||
['<C-x>'] = 'actions.select_split',
|
|
||||||
['<C-p>'] = 'actions.preview',
|
|
||||||
['<C-c>'] = 'actions.close',
|
|
||||||
['-'] = 'actions.parent',
|
|
||||||
['g.'] = 'actions.toggle_hidden',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
init = function()
|
|
||||||
map('n', '-', '<cmd>Oil<cr>')
|
|
||||||
map('n', '<leader>e', '<cmd>Oil<cr>')
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue