Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable filetype detection and syntax highlighting with --clean #17566

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

gpanders
Copy link
Member

@gpanders gpanders commented Mar 1, 2022

--clean is supposed to emulate a "fresh install" and since Neovim enables filetype detection and syntax highlighting by default, these should be enabled when using --clean as well.

The current implementation of --clean is essentially equivalent to -u NONE, but also sources (builtin) plugin files. There's perhaps some discussion to be hand on what is more useful for debugging purposes.

Closes #17565.

--clean is supposed to emulate a "fresh install" and since Neovim
enables filetype detection and syntax highlighting by default, these
should be enabled when using --clean as well.
@clason
Copy link
Member

clason commented Mar 1, 2022

Note that vim --clean behaves the same, but there it's documented to be

'nocompatible', Vim defaults, no plugins, no viminfo
which is somewhat different from how we describe it (as you do in your description).

I would say whatever Vim's thinking, a "factory defaults" setting is very useful for testing, so I would welcome this change (any any others that may be necessary to get closer to that goal).

Reminder: If this gets merged, it should probably be mentioned in the Following HEAD issue.

@gpanders gpanders merged commit ed1a9c3 into neovim:master Mar 1, 2022
@gpanders gpanders deleted the clean-filetype branch March 1, 2022 17:47
dmitmel pushed a commit to dmitmel/neovim that referenced this pull request Apr 16, 2022
…eovim#17566)

--clean is supposed to emulate a "fresh install" and since Neovim
enables filetype detection and syntax highlighting by default, these
should be enabled when using --clean as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--clean does not enable syntax highlighting, filetype detection, etc
2 participants