jakewvincent / mkdnflow.nvim

Fluent navigation and management of markdown notebooks
GNU General Public License v3.0
684 stars 41 forks source link

Change `foldtext` option only for current buffer instead of globally #245

Closed heygent closed 2 months ago

heygent commented 2 months ago

Right now, when loading the foldtext module the foldtext option is changed globally. This overrides the value chosen by the user in all files and leads to inconsistent behaviors, like:

This is fixed by simply setting foldtext using opt_local instead of opt.

jakewvincent commented 2 months ago

Hi @heygent, thanks a bunch for the fix; this was a silly mistake on my part. Would you mind updating the PR so the commit message is prefixed with a fix: ... tag? I'll merge the fix later today once that is done.

heygent commented 2 months ago

No problem, done. Thank you