编码修改

This commit is contained in:
2025-12-14 14:32:45 +08:00
parent 8881dceb13
commit 40db5ee349
2 changed files with 5 additions and 7 deletions

View File

@ -15,14 +15,14 @@ vim9script
export def Init(plug_home: string = v:none)
if !tui#core#cached#Has("tui.plug.home")
# <EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><EFBFBD>
# 初始化插件路径
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)
# <EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
# 初始化插件缓存
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<any>): bool
return dep_loaded
enddef