We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbc46c commit 0214d09Copy full SHA for 0214d09
lua/strive/init.lua
@@ -714,13 +714,16 @@ function Plugin:load(do_action, callback)
714
vim.opt.rtp:append(after_path)
715
end
716
717
- local result = Async.try_await(self:load_scripts())
718
- if result.error then
719
- M.log(
720
- 'error',
721
- string.format('Failed to load scripts for %s: %s', self.name, tostring(result.error))
722
- )
723
- return
+ local plugin_dir = joinpath(plugin_path, 'plugin')
+ if isdir(plugin_dir) then
+ local result = Async.try_await(self:load_scripts())
+ if result.error then
+ M.log(
+ 'error',
+ string.format('Failed to load scripts for %s: %s', self.name, tostring(result.error))
724
+ )
725
+ return
726
+ end
727
728
729
self.loaded = true
0 commit comments