Support for vim syntax modeline #3184
Closed
palvarezcordoba
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
Just did one more search and found this has been already discussed. I'm closing this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is a way to add |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a
logging.yaml.j2
.Because of the extension, neovim won't use the correct syntax, which could be solved configuring filetype, but its easier to add to the file a vim modeline like this:
# vim: syntax=yaml
.I used bat to show the file, but because of the extension, it didn't pick the right syntax.
So I thought it would be nice if bat could recognize the vim modeline and use the correct syntax.
I guess everyone wants bat to improve it's file type recognition, but maybe not everybody wants it implemented this way.
Some other options:
.yaml.j2
) try to use the other extension as fallbackI am aware you can use a CLI option to select the syntax. However there's some inconveniences:
bat
a file, you have to provide additional arguments, which is annoying. Just runningbat
is nicerBeta Was this translation helpful? Give feedback.
All reactions