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 - -