-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Some *.conf files not highlighted #1703
Comments
I just realised that it works when I force it like this:
So why is it not detecting the file when it is named in the same way that the ie.
|
likely related: |
@keith-hall After reading that I noticed that |
I think this might be due to this explicit syntax mapping to "unknown": Lines 54 to 58 in 42f1ef0
I think you could fix it locally by adding: --map-syntax tmux.conf:Tmux to your config file. But that still leaves the question if this should be fixed somehow... |
Thanks, I've added that line to my config for the time being. |
I can take a look at this issue. |
👋🏻 I've just installed bat version I tried Is there anything in particular I need to do to get support for tmux.conf ? Thanks! |
@Integralist If it's not part of bat, add the file I linked to in the top comment to your |
@eggbean ah! nice OK I see. Thank you that works great 🙂 |
I wanted to add syntax highlighting for for .tmux.conf file, so I add this file to
bat/syntaxes/
https://raw.githubusercontent.com/gerardroche/sublime-tmux/master/Tmux.sublime-syntax
I then
bat cache -b
and try viewing my.tmux.conf
file, but it is still plain with no syntax highlighting. Have I missed something or does this file not work with bat for some reason? Tmux and the file extensions do appear withbat -L
.The text was updated successfully, but these errors were encountered: