Fix "Vim:E150: Not a directory" on plugin update

This commit is contained in:
Alexander Grebennik 2024-07-25 12:39:49 +02:00 committed by GitHub
commit dddce09c46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ M.docs = {
return not plugin._.dirty
end,
run = function(self)
local docs = self.plugin.dir .. "/doc/"
local docs = self.plugin.dir .. "/doc"
if Util.file_exists(docs) then
self:log(vim.api.nvim_cmd({ cmd = "helptags", args = { docs } }, { output = true }))
end