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

Sleuth enables "filetype indent" unconditionally #21

Closed
dbarnett opened this issue Jan 19, 2015 · 2 comments
Closed

Sleuth enables "filetype indent" unconditionally #21

dbarnett opened this issue Jan 19, 2015 · 2 comments

Comments

@dbarnett
Copy link

If you have sleuth.vim installed, you will always have filetype indent enabled when plugin/sleuth.vim loads.

It may seem obvious that enabling an indentation-related plugin would enable extra indent settings on you, but since it loads after vimrc time and there's no :verbose filetype variant to troubleshoot what's overriding :filetype on you, it's pretty painful tracking down why you're not able to disable filetype indent from your vimrc if you decide to try it.

sheerun added a commit to sheerun/vim-polyglot that referenced this issue Sep 4, 2020
@sheerun
Copy link

sheerun commented Sep 4, 2020

vim-polyglot doesn't set filetype indent and it's up to user to set it (usually it's on by default)

@tpope tpope closed this as completed in e362d35 Dec 21, 2021
@tpope
Copy link
Owner

tpope commented Dec 21, 2021

My intent was that let g:did_indent_on = 0 could be abused to opt out of this, but you make a good point about discoverability, so I'm adding a documented option.

usually it's on by default

It's off by default on Debian based distros. That alone is a big enough exception that I think it's worth Sleuth taking responsibility for this.

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

No branches or pull requests

3 participants