Dotfiles/site-modules/core/files/vim/plugin/oil.lua
Ade Attwood ca4f0019a8 feat(vim): add the oil file management plugin
This is the plugin I have been using for a while now. I think its much
nicer to use than a tree style. Treating the filesystem as a buffer is
something I used in emacs and have come quite used to.
2023-11-20 08:03:03 +00:00

15 lines
371 B
Lua

local oil = require "oil"
-- A list of file or directory names that will never be shown in the oil view
local always_hidden = { [".git"] = true }
oil.setup {
view_options = {
show_hidden = true,
is_always_hidden = function(name)
return always_hidden[name] or false
end,
},
}
vim.keymap.set("n", "-", oil.open, { desc = "Open parent directory" })