mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
transfer
This commit is contained in:
parent
02c996d21a
commit
28622332a3
83 changed files with 6969 additions and 57 deletions
33
config/nvim/lua/plugins/oil.lua
Normal file
33
config/nvim/lua/plugins/oil.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
default_file_explorer = true,
|
||||
columns = { 'icon' },
|
||||
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