Add oil as additional filemanager

This commit is contained in:
Lord Of Nougate 2023-09-05 21:40:13 +02:00
parent 587831d76f
commit 63720ef6e8
2 changed files with 46 additions and 0 deletions

44
after/plugin/oil.lua Normal file
View 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>")

View File

@ -37,6 +37,8 @@ return require('packer').startup(function(use)
requires = 'nvim-lua/plenary.nvim'
}
use { 'stevearc/oil.nvim' }
use {
"nvim-neorg/neorg",
tag = "*",