m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.35k stars 27 forks source link

feat: support glob pattern for disabled_filetypes #80

Closed heywhy closed 4 months ago

heywhy commented 5 months ago

Specifying buffer types (to disable hardtime for) individually can be tedious, especially for buffers that share a common prefix like Neogit, so I've included a small glob-like support that allows users to specify Neogit* and it matches all Neogit buffers.

heywhy commented 4 months ago

@m4xshen please, take a look at this.

m4xshen commented 4 months ago

@heywhy Sorry I've been busy recently. I'll review this today asap!

m4xshen commented 4 months ago

@heywhy I just rewrote the matching logic and removed the redundant part. It should work same as before. If this looks good to you I'll merge it!

heywhy commented 4 months ago

LGTM! I apologize for my cranky implementation, I have little to no knowledge of Lua. 😄

m4xshen commented 4 months ago

Great, thanks for your contribution :heart: