LunarVim / bigfile.nvim

Make editing big files faster 🚀
Apache License 2.0
284 stars 13 forks source link

feat: allow overriding the detection of big files #16

Closed LostNeophyte closed 1 year ago

LostNeophyte commented 1 year ago

fixes #11

adds override_detection to the config

override_detection nil|fun(bufnr: number, filesize_mib: number): boolean|nil callback to override detection of big files
LostNeophyte commented 1 year ago

can you give an example use case? I just want to make sure we're not creating duplicate functionality

Different file size per filetype, using line count for some file types,

kylo252 commented 1 year ago

Different file size per filetype, using line count for some file types,

I think there's some overlap with pattern, we need to make it clearer how they interact or maybe allow patttern to also be a function instead.