Occasionally I would like to override my standard
nvim configuration, for example, to tell it not to load
vimtex's folding configuration for a very large or complicated tex file for which I don't need folding. For this, I would like to type something like
nvim --someOption="let g:vimtex_fold_enabled = 0"
and have it override the line
let g:vimtex_fold_enabled = 1 in my
plugin/vimtex.vim file (and have it do so in time so that
vimtex loads with the appropriate configuration).
Is there an easy way to do this? Or is there some other way to achieve the same goal (which is basically to tweak my standard configuration on an ad hoc basis when I choose, without changing the standard configuration for all other files). Note: I don't think the filetype-specific configuration will help in this case because I want to be able to have different configurations even when the filetype is the same -- or even to load the same file in different circumstances with a different configuration.