Made oil hide generated templ files

This commit is contained in:
2025-02-14 22:29:48 +11:00
parent 6333d5ea93
commit 835f78fcfd
2 changed files with 8 additions and 2 deletions

View File

@@ -11,8 +11,13 @@ return {
view_options = {
show_hidden = true,
is_always_hidden = function(name, bufnr)
local m = name:match("^%.%.")
return m ~= nil
if name:match("^%.%.") then
return true
end
if name:match("_templ%.go$") or name:match("_templ%.txt$") then
return true
end
return false
end,
},
})