We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796ecdd commit cc78c41Copy full SHA for cc78c41
lua/github-theme/init.lua
@@ -94,8 +94,9 @@ M.setup = function(opts)
94
local cached_path = util.join_paths(config.options.compile_path, 'cache')
95
local cached = read_file(cached_path)
96
97
- local git_path = util.join_paths(debug.getinfo(1).source:sub(2, -27), '.git')
98
- local git = vim.fn.getftime(git_path)
+ local git_path =
+ vim.fn.fnamemodify(vim.fn.resolve(debug.getinfo(1).source:sub(2)), ':p:h:h:h')
99
+ local git = vim.fn.getftime(util.join_paths(git_path, '.git'))
100
local hash = require('github-theme.lib.hash')(opts) .. (git == -1 and git_path or git)
101
102
if cached ~= hash then
0 commit comments