Add oil as additional filemanager
This commit is contained in:
parent
587831d76f
commit
63720ef6e8
44
after/plugin/oil.lua
Normal file
44
after/plugin/oil.lua
Normal file
@ -0,0 +1,44 @@
|
||||
require('oil').setup({
|
||||
default_file_explorer = false,
|
||||
|
||||
columns = {
|
||||
-- "icon",
|
||||
-- "permissions",
|
||||
-- "size",
|
||||
-- "mtime",
|
||||
},
|
||||
|
||||
float = {
|
||||
-- Padding around the floating window
|
||||
padding = 8,
|
||||
max_width = 80,
|
||||
max_height = 64,
|
||||
border = "rounded",
|
||||
win_options = {
|
||||
winblend = 0,
|
||||
},
|
||||
-- This is the config that will be passed to nvim_open_win.
|
||||
-- Change values here to customize the layout
|
||||
override = function(conf)
|
||||
return conf
|
||||
end,
|
||||
},
|
||||
|
||||
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",
|
||||
["<Esc>"] = "actions.close",
|
||||
["<C-r>"] = "actions.refresh",
|
||||
["-"] = "actions.parent",
|
||||
["_"] = "actions.open_cwd",
|
||||
["`"] = "actions.cd",
|
||||
["~"] = "actions.tcd",
|
||||
["g."] = "actions.toggle_hidden",
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<leader>-', ":Oil --float <CR>")
|
@ -37,6 +37,8 @@ return require('packer').startup(function(use)
|
||||
requires = 'nvim-lua/plenary.nvim'
|
||||
}
|
||||
|
||||
use { 'stevearc/oil.nvim' }
|
||||
|
||||
use {
|
||||
"nvim-neorg/neorg",
|
||||
tag = "*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user