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

Option to preserve shiftwidth #114

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Option to preserve shiftwidth #114

wants to merge 3 commits into from

Conversation

Marlstar
Copy link

@Marlstar Marlstar commented Feb 3, 2025

Add the option to preserve shiftwidth set elsewhere using global g:typst_preserve_shiftwidth for users like myself who prefer a non-2 shiftwidth

@kaarmu
Copy link
Owner

kaarmu commented Feb 25, 2025

Thanks for the input!

Could you actually have the option as you suggested first, similar to python's ftplugin:
https://github.com/vim/vim/blob/b2bd8de1541f65e05df5bc256f18f0feb28fa51e/runtime/ftplugin/python.vim#L122-L125

The option's name could be typst_recommended_style.

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.

2 participants