fix(typo): form to from (#4295)

fix(comment): from `form` to `from`.
This commit is contained in:
Alexis Corporal 2023-07-13 14:40:05 +08:00 committed by GitHub
parent c626fe1828
commit 17a96268f7
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?]]