|
@@ -362,7 +362,7 @@ local default_snapshot_path = join_paths(get_lvim_base_dir(), "snapshots", "defa
|
|
|
local content = vim.fn.readfile(default_snapshot_path)
|
|
|
local default_sha1 = assert(vim.fn.json_decode(content))
|
|
|
|
|
|
--- taken form <https://github.com/folke/lazy.nvim/blob/c7122d64cdf16766433588486adcee67571de6d0/lua/lazy/core/plugin.lua#L27>
|
|
|
+-- taken from <https://github.com/folke/lazy.nvim/blob/c7122d64cdf16766433588486adcee67571de6d0/lua/lazy/core/plugin.lua#L27>
|
|
|
local get_short_name = function(long_name)
|
|
|
local name = long_name:sub(-4) == ".git" and long_name:sub(1, -5) or long_name
|
|
|
local slash = name:reverse():find("/", 1, true) --[[@as number?]]
|