home: vim: migrate to 'oil.nvim'

This commit is contained in:
Bruno BELANYI 2024-07-10 21:40:36 +01:00
parent 04de570926
commit 6a6f3aed63
3 changed files with 20 additions and 7 deletions

View file

@ -0,0 +1,19 @@
local oil = require("oil")
local wk = require("which-key")
oil.setup({
view_options = {
-- Show files and directories that start with "." by default
show_hidden = true,
-- But never '..'
is_always_hidden = function(name, bufnr)
return name == ".."
end,
},
})
local keys = {
["-"] = { oil.open, "Open parent directory" },
}
wk.register(keys)