-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Is your feature related to a problem?
I have a large beancount file. The treesitter checks are disabled on it because of the default large_buf
configuration. I want to disable the large_buf
configuration for this filetype, but not for all the others.
Describe the new feature
A user can specify different limits for the large_buf
configuration depending on the filetype/language/treesitter parser.
I don't know how exactly this could be implemented, but perhaps instead of a table, large_buf
could be a function with the filetype as parameter and returning a table (with the same structure as now).
Additional context
I am using the beancount
treesitter parser. Beancount files tend to grow larger every month. But since the file is not a programming language, the treesitter parser is rather simple: I don't expect it to "blow up" on a large file (and so far it never has on my large beancount file). Ideally, I would like to disable the large_buf
checks only for beancount files.