From 40db5ee349f694f4fd1f331114db9f54c32dded4 Mon Sep 17 00:00:00 2001 From: Yongchun Jiang Date: Sun, 14 Dec 2025 14:32:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autoload/tui.vim | 6 +++--- autoload/tui/core/plug.vim | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/autoload/tui.vim b/autoload/tui.vim index 8c22455..13e4348 100644 --- a/autoload/tui.vim +++ b/autoload/tui.vim @@ -2,11 +2,11 @@ vim9script export def Init(tui_home: string) tui#core#cached#Set("tui.home", tui_home) - # 加载插件 + # 鍔犺浇鎻掍欢 tui#core#plug#Init(expand(tui_home .. "/plugged")) - # 加载模块 + # 鍔犺浇妯″潡 tui#core#layer#Init(expand(tui_home .. "/layers")) - # 加载插件 + # 鍔犺浇鎻掍欢 tui#core#plug#Hook() enddef diff --git a/autoload/tui/core/plug.vim b/autoload/tui/core/plug.vim index fe2a731..381716d 100644 --- a/autoload/tui/core/plug.vim +++ b/autoload/tui/core/plug.vim @@ -15,14 +15,14 @@ vim9script export def Init(plug_home: string = v:none) if !tui#core#cached#Has("tui.plug.home") - # 初始化插件路径 + # 鍒濆鍖栨彃浠惰矾寰 const tui_home = tui#core#cached#Get("tui.home") var tui_plug_home = plug_home if empty(tui_plug_home) || empty(split(tui_plug_home)) tui_plug_home = tui#util#path#Join(tui_home, "plugged") endif tui#core#cached#Set("tui.plug.home", tui_plug_home) - # 初始化插件缓存 + # 鍒濆鍖栨彃浠剁紦瀛 tui#core#cached#Set('tui.plug.registed', {}) tui#core#cached#Set('tui.plug.enabled', []) tui#core#cached#Set('tui.plug.disabled', []) @@ -243,5 +243,3 @@ def Hook_loading(plug_id: string, plug_info: dict): bool return dep_loaded enddef - -