mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-11 09:52:31 +00:00
feat(docs): skip docs task for read-only directories
This commit is contained in:
parent
d8f26efd45
commit
e45a1cc2bf
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ M.build = {
|
||||||
|
|
||||||
M.docs = {
|
M.docs = {
|
||||||
skip = function(plugin)
|
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,
|
end,
|
||||||
run = function(self)
|
run = function(self)
|
||||||
local docs = self.plugin.dir .. "/doc"
|
local docs = self.plugin.dir .. "/doc"
|
||||||
|
|
Loading…
Add table
Reference in a new issue