rmagatti / gx-extended.nvim

Extending the use of Neovim's `gx`
MIT License
32 stars 3 forks source link

Register user plugins for specific filetypes #14

Open reegnz opened 1 year ago

reegnz commented 1 year ago

Besides regex, the original gx-extended plugin allowed for an additional filetype-based filtering, so that the regex matching was only happening in a specific filetype. The filetype detection itself is then handled by vim instead of the plugin. Only workaround today is defining your own filename pattern, but then you start reimplementing an inferior version of the ftdetect functionality which is already part of vim.

rmagatti commented 1 year ago

Right. I can see it being useful to have a ft based implementation as well. It would bifurcate the interface of how to register handlers but that might be okay

reegnz commented 9 months ago

@rmagatti I opened a PR with an implementation, I hope that works out.