-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Vim plugin docs improvements #3468
Vim plugin docs improvements #3468
Conversation
…, Usage, and Troubleshooting for readability and easy linking
…with the python-black package (ref: https://bugs.archlinux.org/task/73024)
… tag is an antipattern that doesn't re-resolve with vim-plug, see this discussion for more detail (https://github.com/junegunn/vim-plug/pull/720\#issuecomment-1105829356). Per vim-plug's maintainer's recommendation, use the 'tag' key instead with a shell wildcard. Wildcard should be '*.*.*' as that follows Black's versioning detailed here (https://black.readthedocs.io/en/latest/contributing/release_process.html\#cutting-a-release) and doesn't include current alpha releases.
I think it may be worth calling out in CHANGES.md as we're changing the recommended way to install the vim plugin. |
Also there's a CI failure, you'll need to use prettier to reformat the .md file. |
Oh and the comment you linked about the versioning scheme refers to the stable tag. But a while ago we changed to have a stable branch, because using a tag that keeps changing is indeed weird. Does that change the situation? |
I'd missed that shift, I think it probably does change things. IIRC specifying a branch works better with
I'm assuming this conditional is solely based on the
All glory to the |
I might like the Also, users might have weird cached state from back when
Agree. |
Yeah I agree, I kinda prefer the |
…ight) and tweak some punctuation
* Organize vim plugin section with headers to separate out Installation, Usage, and Troubleshooting for readability and easy linking * Add missing plugin configuration options, with current defaults * Add installation note for Arch Linux, now that the plugin is shipped with the python-black package (ref: https://bugs.archlinux.org/task/73024) * Fix vim-plug specification to follow stable releases. Moving the same tag is an antipattern that doesn't re-resolve with vim-plug, see this discussion for more detail (https://github.com/junegunn/vim-plug/pull/720\#issuecomment-1105829356). Per vim-plug's maintainer's recommendation, use the 'tag' key instead with a shell wildcard. Wildcard should be '*.*.*' as that follows Black's versioning detailed here (https://black.readthedocs.io/en/latest/contributing/release_process.html\#cutting-a-release) and doesn't include current alpha releases.
Description
This is a few documentation changes for the Vim plugin. I included them in the same PR to avoid clutter and because they're all pretty minor and easily reviewed together. I also made a commit for each thematic change, so feel free to look at specific commits if you want to see the changes in isolation. I didn't think this was a substantial enough change to warrant a
CHANGES.md
entry, but am happy to add one if maintainers disagree.There are 4 main changes in here:
Formatting and Organization
Commit: 26c56f2 and 197edbd
Currently there are no sub-headers under the Official Plugin section, which can make it a bit tough to read and especially to hyperlink to. Organized it into Installation, Usage, and Troubleshooting as felt appropriate.
Add missing configuration options
Commit: 9929893
A few configuration options exist but weren't mentioned with their defaults at the top of the Vim plugin documentation section, so I added those.
Add plugin documentation for Arch Linux
Commit: bb0f446
Refer to this issue on the Arch Linux
python-black
package: https://bugs.archlinux.org/task/73024Since earlier this calendar year, the Black package distributed on Arch Linux (
python-black
) also ships the Vim plugin, so I added a section to the Installation section mentioning that Arch Linux users need no further steps to use the plugin than installing Black.Fix the vim-plug installation recommendation
Commit: 1a73b72
Refer to this discussion on the
vim-plug
repo: junegunn/vim-plug#720 (comment)Using the
stable
tag as abranch
invim-plug
is a bit of an antipattern that doesn't work correctly, as it doesn't always re-resolve the SHA when thestable
tag is moved. According to the maintainer, using thetag
key with a shell wildcard is the better way to go. I selected'*.*.*'
as the wildcard since it matches Black's documented versioning scheme and will not match on the current standard for Alpha versions (which only have one dot). You can see how this works in the image below; it matches on22.12.0
(the latest stable release) even though the latest version overall at time of writing is23.1a1
.Checklist - did you ...
CHANGES.md
if necessary? (Seems a small enough change to not need an entry, do maintainers agree?)