Poor syntax highlight for typescript in lazyvim after update to Omarchy 3.1
System details
Omarchy 3.1
What's wrong?
Hello everyone!
After upgrading my system to omarchy 3.1, I noticed that syntax highlighting for TypeScript in lazyvim stopped working for things like imports, strings, keywords, and comments.
For comparison, here's a screenshot of vscode and nvim side by side:
Running :checkhealth:
Since I'm learning about Linux/Omarchy, I'm struggling a lot to solve it.
Thank you for your attention!
:checkhealth
Same
The same for me. Some syntax highlighting works (for instance: bash, yaml), but most of it doesn't. Already spent 1h on fixing this but without success - I've checked LazyVim and treesitter configuration.
Yep same thing happened to me. Also no syntax highlighting for html
had the same issue after updating last night.
The fix in this thread worked for me https://github.com/basecamp/omarchy/issues/1970#issuecomment-3341389967 reinstall lazy
Fix from #1970 (which involves deleting ~/.local/share/nvim and letting LazyVim reinstall all plugins from scratch) does work.
I dug into the script and the package source (/usr/share/omarchy-nvim). It looks like omarchy has a totally different approach to handling plugins (for tree sitter in this case).
Normal setup (LazyVim): You install one plugin: nvim-treesitter (configured in plugins/example.lua). That plugin handles the rest - it downloads the parser source code, compiles them, and everything just works.
omarchy setup: The script just runs rm -rf on everything in ~/.local/share/nvim (if it is not clean setup) and copies its own "pre-bundled"(?) plugins from /usr/share/omarchy-nvim.
And here's the bug: When I checked that directory, the omarchy package ships the individual parsers (e.g., tree-sitter-bash, tree-sitter-javascript, etc.). But these packages not configured in lazyvim config.
Fix from #1970 worked!
Thank you guys for the help!
Can confirm that removing the three dirs worked for me, too. Before, some of the .so files were not executable a timestamp 30 mins earlier than the others, tried to set them all to 755 but that didn't fix it.
@j13y I'd be interested to dig into how you reached this state and if we can recreate it to improve the omarchy-nvim package.
There's not a lot of magic to that package. We just clone the lazyvim repo, and the run the app so that all of the installs are finished from the start and we can ship a pre-warmed version of lazyvim. With omarchy-nvim-setup we copy over the configs, as well as the state files so that it arrives at the same place it would if you ran it yourself.
What's odd is that in a new setup, there's no problem, and if accepted in a migration it'd wipe out the entire nvim config and reset it to new so there shouldn't be an issue but there's clearly something we're missing here.
You can see the package here https://github.com/omacom-io/omarchy-pkgs/tree/master/pkgbuilds/omarchy-nvim that builds that.
Can confirm that running this worked