Closed staticWagomU closed 2 months ago
Hm... It seems feature.
You can test setlocal winbar=Hoge
when empty floating window.
It works for me.
lua << EOF
vim.api.nvim_create_autocmd({ 'VimEnter', 'BufEnter', 'BufModifiedSet', 'WinEnter', 'WinLeave' }, {
group = vim.api.nvim_create_augroup('Hoge', { clear = true }),
pattern = '*',
callback = function()
for _, buf in ipairs(vim.fn.getbufinfo({ buflisted = 1 })) do
local winid = vim.fn.bufwinid(buf.bufnr)
if winid ~= -1 and vim.fn.line('$', winid) > 1 then
vim.fn.setwinvar(winid, '&winbar', 'Fuga')
end
end
end,
})
vim.api.nvim_create_autocmd({ 'User' }, {
group = vim.api.nvim_create_augroup('Hoge', { clear = true }),
pattern = 'Ddu:uiDone',
callback = function()
if vim.fn.line('$') > 1 then
vim.fn.setwinvar(vim.fn.win_getid(), '&winbar', 'Fuga')
end
end,
})
EOF
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
When ddu with uiParams set to
floatingBorder: 'single'
is started with winbar set, ddu-ui is not opened in a popup but the previously opened buffer is opened in a popup and an error occurs.Expected
I want ddu-ui to open
Environment Information
ddu-ui-ff version (SHA1):dd6cc89edd4d19996eaf3cb9247be2e4c58e83c9
denops.vim version (SHA1):45b8a1c45fe06e95538fc701ee7d6e3cc5335659
deno version(
deno -V
output):OS: WSL2
neovim/Vim
:version
output:Provide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
call call ddu#start(#{name:'hoge'})
Screenshot (if possible)
Upload the log messages by
:redir
and:message
(if errored)