Skip to content

Commit

Permalink
fix(plugins): "Vim:E150: Not a directory" on plugin update (#1679)
Browse files Browse the repository at this point in the history
## 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/
```
slbug authored Jul 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4496b4c commit 7108809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/manage/task/plugin.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7108809

Please sign in to comment.