This repository has been archived on 2025-12-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nvim-old/lua/haelnorr/lazy/oil.lua

27 lines
607 B
Lua

return {
"stevearc/oil.nvim",
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("oil").setup({
watch_for_changes = true,
view_options = {
show_hidden = true,
is_always_hidden = function(name, bufnr)
if name:match("^%.%.") then
return true
end
if name:match("_templ%.go$") or name:match("_templ%.txt$") then
return true
end
return false
end,
},
})
vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
end,
}