Skip to content
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

Fixes issue with plugin closing new tabs opened with telescope-helpgrep.nvim #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

catgoose
Copy link

I am the maintainer of telescope-helpgrep.nvim (https://github.com/catgoose/telescope-helpgrep.nvim), when I have the default action set to telescope.actions.select_tab the autocmds setup for tailwind-tools.nvim automatically close the tab created by Telescope.

I have added supported_filetypes to the config and used those filetypes as patterns in the autocmds

@luckasRanarison
Copy link
Owner

I haven't tried your plugin yet but I'm really confused, what's the specific autocmd that causes your issue and how is it even related?

@catgoose
Copy link
Author

https://github.com/catgoose/tailwind-tools.nvim/blob/bedc3c776898a936a483ea3de8b675644ee0b6fa/lua/tailwind-tools/conceal.lua#L45

When my plugin opens a help file with a new tab, if that autocmd does not match against filetypes that would have html classes it closes the tab immediately.

When I just tested I got this message when I opened a tab:

image

I have had some weird issues with neogit tabs lately now that I think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants