diff --git a/lua/github-theme/init.lua b/lua/github-theme/init.lua index 978b6171..274abe54 100644 --- a/lua/github-theme/init.lua +++ b/lua/github-theme/init.lua @@ -94,7 +94,7 @@ M.setup = function(opts) local cached_path = util.join_paths(config.options.compile_path, 'cache') local cached = read_file(cached_path) - local git_path = util.join_paths(debug.getinfo(1).source:sub(2, -23), '.git') + local git_path = util.join_paths(debug.getinfo(1).source:sub(2, -27), '.git') local git = vim.fn.getftime(git_path) local hash = require('github-theme.lib.hash')(opts) .. (git == -1 and git_path or git)