Closed MaiLunJiye closed 4 years ago
浮动窗口遮挡后面的窗口可以正常操作,但是浮动窗口会一直遮挡在前面。 目前唯一解决的办法就是退出重启 neovim
在其他窗口执行 <C-w>o
可以关闭这个遮挡着的窗口
Hi, @MaiLunJiye
Could you please help debug this issue?
debug-feature
branch
Plug 'voldikss/vim-floaterm, {'branch': 'debug-feature'}
g:floaterm_debug
to v:true
:FloatermInfo
and post the log.@function floaterm#new[1]
[]
@function floaterm#new[10]..floaterm#cmdline#parse_new[1]
[]
@function floaterm#new[10]..floaterm#cmdline#parse_new[21]
['', {'wintype': 'floating', 'width': 108, 'height': 30, 'pos': 'center'}]
@function floaterm#new[28]..floaterm#terminal#open[1]
[-1, '/usr/bin/zsh', {}, {'wintype': 'floating', 'width': 108, 'height': 30, 'pos': 'center'}]
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[1]
[2, 108, 30, 'center']
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[15]..<SNR>88_add_border[1]
1002
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[15]..<SNR>88_add_border[17]..floaterm#buffer#create[6]
3
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[15]..<SNR>88_add_border[33]
1003
@function floaterm#new[28]..floaterm#terminal#open[61]..<SNR>87_on_floaterm_open[1]
2
@function floaterm#new[30]..floaterm#buflist#add[4]
[-(-1)--(2)-] current index: 2
@function <SNR>87_on_floaterm_close[1]
2
@function <SNR>87_on_floaterm_close[6]..floaterm#window#hide_border[1]
2
Thanks @MaiLunJiye .
Seems some thing wrong with this function
I've updated code of branch debug-feature
, could you try and post the log again?
P.S. I'd appreciate it if you could also provide a gif
@function floaterm#new[1]
[]
@function floaterm#new[10]..floaterm#cmdline#parse_new[1]
[]
@function floaterm#new[10]..floaterm#cmdline#parse_new[21]
['', {'wintype': 'floating', 'width': 64, 'height': 16, 'pos': 'center'}]
@function floaterm#new[28]..floaterm#terminal#open[1]
[-1, '/usr/bin/zsh', {}, {'wintype': 'floating', 'width': 64, 'height': 16, 'pos': 'center'}]
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[1]
[2, 64, 16, 'center']
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[15]..<SNR>88_add_border[1]
1002
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[15]..<SNR>88_add_border[17]..floaterm#buffer#create[6]
3
@function floaterm#new[28]..floaterm#terminal#open[28]..floaterm#window#nvim_open_win[15]..<SNR>88_add_border[33]
1003
@function floaterm#new[28]..floaterm#terminal#open[61]..<SNR>87_on_floaterm_open[1]
2
@function floaterm#new[30]..floaterm#buflist#add[4]
[-(-1)--(2)-] current index: 2
@function <SNR>87_on_floaterm_close[5]
2
@function <SNR>87_on_floaterm_close[7]..floaterm#window#hide_border[3]
2
@MaiLunJiye Could you show your full vimrc
(i.e., provide as a gist link)
@MaiLunJiye Could you show your full vimrc(i.e., provide as a gist link)
https://gist.github.com/MaiLunJiye/98a690ef781ba3c8acf52c91ee20c18e
Ah, figured it out finally. It's caused by cross-plugin conflict, which I should have noticed at first.
So the solution, according to the Q&A, is to put this code in your vimrc
autocmd User Startified setlocal buflisted
Hi @MaiLunJiye would you mind testing it again? If the issue gets fixed, I'll closed this issue.
Thanks, it works. I'm sorry, i should check the Q&A first.
Nerver mind, the Q&A should be more detailed, I'll update soon.
如果直接输入 nvim,不打开任何文件 。 这时候如果开启一个终端,然后退出。 则 浮动窗口不会自动关闭,而是会一直在前面遮挡。
浮动窗口遮挡后面的窗口可以正常操作,但是浮动窗口会一直遮挡在前面。
目前唯一解决的办法就是退出重启 neovim
系统环境
vim-floaterm 配置:
使用的其他插件:
nvim 环境: