Closed yaocccc closed 3 years ago
等剔除其它所有插件后的演示如gif
Reproduction script
function s:quit(name, callback)
call feedkeys("\<ESC>")
call timer_start(500, a:callback)
endfunction
function s:open(name, quit, callback)
CocCommand explorer --position floating
if a:quit
call timer_start(1000, {-> s:quit(a:name, a:callback)})
endif
endfunction
function s:split()
split
bd
call s:open('3', v:false, {-> s:end()})
endfunction
function s:open2()
call s:open('2', v:true, {-> s:split()})
endfunction
function! Start()
call timer_start(500, {-> s:open('1', v:true, {-> s:open2()})})
endfunction
command! Start call Start()
个人配置情况: hi CocExplorerNormalFloat ctermbg=none guibg=none
coc-config: "explorer.presets.floating.position": "floating", "explorer.presets.floating.floating-width": 80, "explorer.presets.floating.floating-position": "center",
启动命令::CocCommand explorer --preset floating
复现过程: :CocCommand explorer --preset floating
:CocCommand explorer --preset floating
:split
:bd
::CocCommand explorer --preset floating