mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(picker.actions): check that plugin exists before loading it in help. Closes #1134
This commit is contained in:
parent
96796db21e
commit
e326de9e0c
1 changed files with 1 additions and 1 deletions
|
@ -528,7 +528,7 @@ function M.help(picker, item, action)
|
|||
local file = Snacks.picker.util.path(item) or ""
|
||||
if package.loaded.lazy then
|
||||
local plugin = file:match("/([^/]+)/doc/")
|
||||
if plugin then
|
||||
if plugin and require("lazy.core.config").plugins[plugin] then
|
||||
require("lazy").load({ plugins = { plugin } })
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue