From 7b00ebba8d30b9c35cb7d0f851820612c188aad1 Mon Sep 17 00:00:00 2001 From: Null Chilly Date: Tue, 30 May 2023 12:08:57 +0700 Subject: [PATCH] fix(cache): wrong .git path --- lua/github-theme/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)