tailwind-tools.nvim icon indicating copy to clipboard operation
tailwind-tools.nvim copied to clipboard

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

Open catgoose opened this issue 1 year ago • 2 comments

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

catgoose avatar Apr 25 '24 13:04 catgoose

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?

luckasRanarison avatar Apr 25 '24 14:04 luckasRanarison

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.

catgoose avatar Apr 25 '24 22:04 catgoose