mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
refactor: merge plugin & state in one file
This commit is contained in:
parent
fe33e4e3dd
commit
3e8fbaffba
6 changed files with 269 additions and 271 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue