Replace oil with fyler
This commit is contained in:
19
lua/plugins/fyler.lua
Normal file
19
lua/plugins/fyler.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
'A7Lavinraj/fyler.nvim',
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
branch = 'stable',
|
||||
opts = {
|
||||
default_explorer = true,
|
||||
icon_provider = 'nvim_web_devicons',
|
||||
mappings = {
|
||||
['C-d'] = 'SelectVSplit',
|
||||
['C-s'] = 'SelectSplit',
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ '-', function() require('fyler').open() end, desc = 'Open Fyler' },
|
||||
},
|
||||
cmd = { 'Fyler' },
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
return {
|
||||
'stevearc/oil.nvim',
|
||||
opts = {
|
||||
delete_to_trash = true,
|
||||
default_file_explorer = true,
|
||||
skip_confirm_for_simple_edits = true,
|
||||
view_options = {
|
||||
-- Show files and directories that start with "."
|
||||
show_hidden = true,
|
||||
},
|
||||
keymaps = {
|
||||
['g?'] = 'actions.show_help',
|
||||
['<CR>'] = 'actions.select',
|
||||
['<C-s>'] = 'actions.select_vsplit',
|
||||
['<C-h>'] = 'actions.select_split',
|
||||
['<C-t>'] = 'actions.select_tab',
|
||||
['<C-p>'] = 'actions.preview',
|
||||
['<C-c>'] = 'actions.close',
|
||||
['<C-l>'] = 'actions.refresh',
|
||||
['<backspace>'] = 'actions.parent',
|
||||
['_'] = 'actions.open_cwd',
|
||||
['`'] = 'actions.cd',
|
||||
['~'] = 'actions.tcd',
|
||||
['g.'] = 'actions.toggle_hidden',
|
||||
},
|
||||
},
|
||||
lazy = false,
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
keys = {
|
||||
{
|
||||
'-',
|
||||
function() require('oil').open() end,
|
||||
desc = 'Open oil',
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user