fix(extras): disable import handling when loading :LazyExtras + changed some recommendations

This commit is contained in:
Folke Lemaitre 2025-02-10 23:27:24 +01:00
parent 66981fe5b2
commit 121a2e27ef
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 23 additions and 23 deletions

View file

@ -83,6 +83,7 @@ end
---@param modname string
---@param source LazyExtraSource
function M.get_extra(source, modname)
LazyVim.plugin.handle_defaults = false
local enabled = vim.tbl_contains(M.state, modname)
local spec = Plugin.Spec.new(nil, { optional = true, pkg = false })
spec:parse({ import = modname })