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 42f896d commit 8e504caCopy full SHA for 8e504ca
lua/colorbox/loader.lua
@@ -1,6 +1,7 @@
1
local logging = require("colorbox.commons.logging")
2
local strings = require("colorbox.commons.strings")
3
local tables = require("colorbox.commons.tables")
4
+local uv = require("colorbox.commons.uv")
5
6
local configs = require("colorbox.configs")
7
@@ -17,6 +18,10 @@ M.load = function(colorname)
17
18
if tables.tbl_empty(spec) then
19
return
20
end
21
+ local pack_exist = uv.fs_stat(spec.full_pack_path) ~= nil
22
+ if not pack_exist then
23
+ return
24
+ end
25
26
local autoload_path = string.format("%s/autoload", spec.full_pack_path)
27
vim.opt.runtimepath:append(autoload_path)
0 commit comments