编码修改
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user