nvim: add plugin 'stevearc/oil.nvim'
This commit is contained in:
parent
1b9dfaaae4
commit
335b5ef25b
2 changed files with 34 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
||||||
"nvim-treesitter-refactor": { "branch": "master", "commit": "d8b74fa87afc6a1e97b18da23e762efb032dc270" },
|
"nvim-treesitter-refactor": { "branch": "master", "commit": "d8b74fa87afc6a1e97b18da23e762efb032dc270" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "19d6211c78169e78bab372b585b6fb17ad974e82" },
|
"nvim-web-devicons": { "branch": "master", "commit": "19d6211c78169e78bab372b585b6fb17ad974e82" },
|
||||||
|
"oil.nvim": { "branch": "master", "commit": "08c2bce8b00fd780fb7999dbffdf7cd174e896fb" },
|
||||||
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" },
|
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" },
|
||||||
"open-browser.vim": { "branch": "master", "commit": "7d4c1d8198e889d513a030b5a83faa07606bac27" },
|
"open-browser.vim": { "branch": "master", "commit": "7d4c1d8198e889d513a030b5a83faa07606bac27" },
|
||||||
"plantuml-previewer.vim": { "branch": "master", "commit": "368a1f331c1ff29f6a3ee76facfca39a7f374b13" },
|
"plantuml-previewer.vim": { "branch": "master", "commit": "368a1f331c1ff29f6a3ee76facfca39a7f374b13" },
|
||||||
|
|
33
config/nvim/lua/fschauen/plugins/oil.lua
Normal file
33
config/nvim/lua/fschauen/plugins/oil.lua
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
return {
|
||||||
|
"stevearc/oil.nvim",
|
||||||
|
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
|
||||||
|
cmd = "Oil",
|
||||||
|
|
||||||
|
keys = {
|
||||||
|
{ "-", "<cmd>Oil<cr>", desc = "Open Oil" },
|
||||||
|
},
|
||||||
|
|
||||||
|
config = function()
|
||||||
|
require("oil").setup {
|
||||||
|
columns = {
|
||||||
|
"icon",
|
||||||
|
"permissions",
|
||||||
|
"size",
|
||||||
|
"mtime",
|
||||||
|
},
|
||||||
|
|
||||||
|
keymaps = {
|
||||||
|
-- Not using <c-v> because Visual Block mode is useful in an Oil buffer.
|
||||||
|
["<C-l>"] = "actions.select_vsplit",
|
||||||
|
["<C-s>"] = "actions.select_split",
|
||||||
|
["q"] = "actions.close",
|
||||||
|
},
|
||||||
|
|
||||||
|
view_options = {
|
||||||
|
show_hidden = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue