refactor: merge plugin & state in one file

This commit is contained in:
Folke Lemaitre 2022-11-25 22:48:17 +01:00
parent fe33e4e3dd
commit 3e8fbaffba
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 269 additions and 271 deletions

View file

@ -1,7 +1,7 @@
local Config = require("lazy.core.config")
local Task = require("lazy.task")
local Runner = require("lazy.runner")
local State = require("lazy.core.state")
local Plugin = require("lazy.core.plugin")
local M = {}
@ -107,7 +107,7 @@ end
---@param opts? ManagerOpts
function M.clean(opts)
opts = opts or {}
State.update_state(true)
Plugin.update_state(true)
opts.plugins = vim.tbl_values(Config.to_clean)
M.run("clean", opts)
end