Why change 'formatoptions'
in filetype plugins?
#26908
Danielkonge
started this conversation in
General
Replies: 2 comments 2 replies
-
These files are indeed taken verbatim from Vim. Clearly the individual maintainers felt that these options were appropriate and useful for the corresponding language. If you disagreed, feel free to contact the maintainers listed at the top of each file and state your case. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Tbh I agree; filetype plugin files has no business changing formatoptions most of the time and is a terrible design choice IMO. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is related to a discussion question I asked yesterday: #26885
Why is neovim changing the formatoptions in many of the
ftplugin
files? I could maybe understand removing known problematic options in certain languages, but the files often also add multiple options.Is this something carried over from Vim itself? Or is this a choice that has been made by neovim maintainers? If so, what is the advantage of having these formatoptions changed by filetype plugins?
Beta Was this translation helpful? Give feedback.
All reactions