-
-
Notifications
You must be signed in to change notification settings - Fork 605
Properly set ft=gitcommit
when opening editor
#518
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
Comments
This might be partially related to #517. |
@extrawurst , |
@savchenko can you tell me more about this, I am not a vim user. is that something git does when opening the editor for a commit msg? can you point me to some documentation? also how would this behave if the user configures its |
Editor for
I would imagine that
When editing git commit message, vim detects |
@extrawurst I think the problem might just be the file name. When committing through gitui, it sets the file name to |
thanks for the hint, I think #733 fixes this now |
Is your feature request related to a problem? Please describe.
When user opens an editor to redact the commit message, it does not pass the
filetype
.Describe the solution you'd like
Pass
set ft=gitcommit
to vim when editing commit message.Describe alternatives you've considered
Set filetype manually on each edit.
Additional context
This can be done via
-c
flag, e.g.:nvim -c ":set ft=gitcommit" -- /path/to/commit
The text was updated successfully, but these errors were encountered: