Preview with Neovim's syntax highlighting instead of bat #1729
-
|
I've been trying to figure out how to work with Neovim's headless mode and hack a way to get it to provide syntax highlighting instead of using bat. I would like to have consistent syntax highlighting across my entire workspace and since I use Neovim, I thought I would try to find a way but I haven't been able to get it to work. The goal would be to let the LSP and Treesitter provide syntax highlighting for the preview. I was wondering if anyone here has done this or knows of a way to get this to work. I'd appreciate hearing any ideas you guys may have because this would be an amazing way to sync everything seamlessly. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hey @psi4j! This is something I am interested as well. My way around this is using colour themes which also support |
Beta Was this translation helpful? Give feedback.
-
Hey there. I've actually switched over to using Yazi and use a custom bat theme myself. I appreciate you sharing this though. Somebody else might find this useful. |
Beta Was this translation helpful? Give feedback.
Hey @psi4j!
This is something I am interested as well. My way around this is using colour themes which also support
batthemes (i.e..tmThemefiles; often under anextrasdirectory). However, due to the way these themes work, some elements are still coloured differently. This is the closest I got with this.