Compare commits

...

3 Commits

Author SHA1 Message Date
Erik Lilja d724b64371
Merge 5b9ec99fe4 into 60cf258a9a 2024-11-10 15:55:14 +01:00
Folke Lemaitre 60cf258a9a
fix(docs): always update helptags for local plugins 2024-11-10 07:28:51 +01:00
Erik Lilja 5b9ec99fe4 fix(core): validate non-string plugin 2024-11-01 13:51:52 +01:00
2 changed files with 4 additions and 1 deletions

View File

@ -106,6 +106,9 @@ function M:add(plugin)
-- short url / ref
if plugin[1] then
if type(plugin[1]) ~= "string" then
return self.spec:error("Invalid plugin spec " .. vim.inspect(plugin))
end
local slash = plugin[1]:find("/", 1, true)
if slash then
local prefix = plugin[1]:sub(1, 4)

View File

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