feat(docs): skip docs task for read-only directories

This commit is contained in:
Seong Yong-ju 2025-01-22 04:33:03 +09:00
parent d8f26efd45
commit e45a1cc2bf

View file

@ -87,7 +87,7 @@ M.build = {
M.docs = {
skip = function(plugin)
return not plugin._.is_local and not plugin._.dirty
return not plugin._.is_local and not plugin._.dirty or not vim.uv.fs_access(plugin.dir, "W")
end,
run = function(self)
local docs = self.plugin.dir .. "/doc"