-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Register user plugins for specific filetypes #14
Comments
Right. I can see it being useful to have a |
reegnz
added a commit
to reegnz/gx-extended.nvim
that referenced
this issue
Dec 15, 2023
Instead of just plain globbing and trying to figure out file types by glob patterns, utilize existing ftdetect functionality of neovim. Fixes rmagatti#14 Signed-off-by: Zoltán Reegn <zoltan.reegn@gmail.com>
reegnz
added a commit
to reegnz/gx-extended.nvim
that referenced
this issue
Dec 15, 2023
Instead of just plain globbing and trying to figure out file types by glob patterns, utilize existing ftdetect functionality of neovim. Fixes rmagatti#14 Signed-off-by: Zoltán Reegn <zoltan.reegn@gmail.com>
@rmagatti I opened a PR with an implementation, I hope that works out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: