-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix telescope windows #28
base: main
Are you sure you want to change the base?
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
TelescopePrompt
filetype
but others have emptyfiletype
and the only identyfying feature wasterm:
first component of the path.