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

Allow disabling default style settings #89

Open
DaQueenJodi opened this issue Feb 22, 2023 · 1 comment
Open

Allow disabling default style settings #89

DaQueenJodi opened this issue Feb 22, 2023 · 1 comment

Comments

@DaQueenJodi
Copy link

Plugins like python.vim, rust.vim etc also set the tabstop, shiftwidth, etc for the recommended styling of the language but they all have a (i.e) g:python_recommended_style variable you can set to false to disable that
I think it would be a good idea to do the same here since I (and I'm sure many others) don't like plugins changing the indentation spacing and other settings

@DaQueenJodi
Copy link
Author

Im not a vim plugin developer but this is how rust.vim does it, seems relatively simple:

if get(g:, 'rust_recommended_style', 1)
    let b:rust_set_style = 1
    setlocal shiftwidth=4 softtabstop=4 expandtab
    setlocal textwidth=99
endif

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

1 participant