Fix telescope windows#28
Conversation
|
trouble is that winbar does come up in "buf 2:" view after a few back-and-forth as well. So there must be some other way to identify that those are |
|
@fgheng what do you think would be more appropriate here to catch |
|
I've had couple of ideas thus far:
|
|
tried "fixing" it with overriding status when entering Telescope buffer: vim.api.nvim_create_autocmd({'BufWinEnter','BufWinLeave'}, {
callback = function(ev)
local wb=require('winbar')
if ev.event == 'BufWinEnter' then
if vim.fn.filereadable(ev.file) then
-- it's a real file
local ft = vim.api.nvim_buf_get_name(ev.buf)
if ft == 'TelescopePrompt' then
-- disable winbar
wb.setup({enable=false})
end
end
elseif ev.event == 'BufWinEnter' then
wb.setup({enable=true})
end
end
})with no success |
|
After some tinkering I think I've arrived (by experimentation) at a combination of conditions that disables |
Recent updates made Telescope windows be picked up by winbar making things looking rather odd:
turns out that that some can be picked by
TelescopePromptfiletypebut others have emptyfiletypeand the only identyfying feature wasterm:first component of the path.