编码修改
This commit is contained in:
@ -2,11 +2,11 @@ vim9script
|
|||||||
|
|
||||||
export def Init(tui_home: string)
|
export def Init(tui_home: string)
|
||||||
tui#core#cached#Set("tui.home", tui_home)
|
tui#core#cached#Set("tui.home", tui_home)
|
||||||
# <EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><EFBFBD><EFBFBD>
|
# 加载插件
|
||||||
tui#core#plug#Init(expand(tui_home .. "/plugged"))
|
tui#core#plug#Init(expand(tui_home .. "/plugged"))
|
||||||
# <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>
|
# 加载模块
|
||||||
tui#core#layer#Init(expand(tui_home .. "/layers"))
|
tui#core#layer#Init(expand(tui_home .. "/layers"))
|
||||||
# <EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><EFBFBD><EFBFBD>
|
# 加载插件
|
||||||
tui#core#plug#Hook()
|
tui#core#plug#Hook()
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
|||||||
@ -15,14 +15,14 @@ vim9script
|
|||||||
|
|
||||||
export def Init(plug_home: string = v:none)
|
export def Init(plug_home: string = v:none)
|
||||||
if !tui#core#cached#Has("tui.plug.home")
|
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")
|
const tui_home = tui#core#cached#Get("tui.home")
|
||||||
var tui_plug_home = plug_home
|
var tui_plug_home = plug_home
|
||||||
if empty(tui_plug_home) || empty(split(tui_plug_home))
|
if empty(tui_plug_home) || empty(split(tui_plug_home))
|
||||||
tui_plug_home = tui#util#path#Join(tui_home, "plugged")
|
tui_plug_home = tui#util#path#Join(tui_home, "plugged")
|
||||||
endif
|
endif
|
||||||
tui#core#cached#Set("tui.plug.home", tui_plug_home)
|
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.registed', {})
|
||||||
tui#core#cached#Set('tui.plug.enabled', [])
|
tui#core#cached#Set('tui.plug.enabled', [])
|
||||||
tui#core#cached#Set('tui.plug.disabled', [])
|
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
|
return dep_loaded
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user