mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
parent
c626fe1828
commit
17a96268f7
1 changed files with 1 additions and 1 deletions
|
@ -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?]]
|
||||
|
|
Loading…
Reference in a new issue