chore: types: Lz -> lz.n prefix

This commit is contained in:
Marc Jakobi
2024-06-07 13:44:39 +02:00
parent 03d08056c1
commit 5b51bff25e
14 changed files with 116 additions and 116 deletions

View File

@@ -7,7 +7,7 @@ if not vim.loader or vim.fn.has("nvim-0.9.1") ~= 1 then
error("lz.n requires Neovim >= 0.9.1")
end
---@param spec string | LzSpec
---@param spec string | lz.n.Spec
function M.load(spec)
if vim.g.lzn_did_load then
return vim.notify("lz.n has already loaded your plugins.", vim.log.levels.WARN, { title = "lz.n" })
@@ -17,7 +17,7 @@ function M.load(spec)
if type(spec) == "string" then
spec = { import = spec }
end
---@cast spec LzSpec
---@cast spec lz.n.Spec
local plugins = require("lz.n.spec").parse(spec)
require("lz.n.loader").load_startup_plugins(plugins)
require("lz.n.state").plugins = plugins