mirror of https://github.com/folke/lazy.nvim.git
fix(plugins): "Vim:E150: Not a directory" on plugin update (#1679)
## Description On plugins update it fails with following error for any plugin. ``` ~/.local/share/nvim/lazy/lazy.nvim/manage/task/plugin.lua:95: Vim:E150: Not a directory: ~/.local/share/nvim/lazy/gitsigns.nvim/doc/ ```
This commit is contained in:
parent
4496b4cad6
commit
7108809ab1
|
@ -90,7 +90,7 @@ M.docs = {
|
||||||
return not plugin._.dirty
|
return not plugin._.dirty
|
||||||
end,
|
end,
|
||||||
run = function(self)
|
run = function(self)
|
||||||
local docs = self.plugin.dir .. "/doc/"
|
local docs = self.plugin.dir .. "/doc"
|
||||||
if Util.file_exists(docs) then
|
if Util.file_exists(docs) then
|
||||||
self:log(vim.api.nvim_cmd({ cmd = "helptags", args = { docs } }, { output = true }))
|
self:log(vim.api.nvim_cmd({ cmd = "helptags", args = { docs } }, { output = true }))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue