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

Add support for filetypes #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reegnz
Copy link
Contributor

@reegnz reegnz commented 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 #14

@reegnz reegnz marked this pull request as draft December 15, 2023 13:32
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 reegnz marked this pull request as ready for review December 15, 2023 13:55
@rmagatti rmagatti self-requested a review April 2, 2024 00:54
Copy link
Owner

@rmagatti rmagatti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, sorry about the delay. One issue I see here if I understand things correctly this looks at the filetype, and then based on what it finds for that, runs the glob pattern check. This poses two issues:

  1. This would be a breaking change
  2. This makes it mandatory to specify a filetype, but if I mean to operate on a given glob and not on a filetype necessarily, this PR would make that impossible.

I definitely like where this is going though. The biggest change I'd make here would be to not conflate filetypes with glob patterns, and just allow for specifying one and not the other as well as both if desired.

Thanks for the PR! I appreciate the contribution!

@reegnz
Copy link
Contributor Author

reegnz commented Apr 2, 2024

Moved on to gx.nvim, so I'll leave this for someone else to pick up.

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.

Register user plugins for specific filetypes
2 participants