omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Poor syntax highlight for typescript in lazyvim after update to Omarchy 3.1

Open lucasolima opened this issue 1 year ago • 10 comments

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:

Image

Running :checkhealth:

Image Image

Since I'm learning about Linux/Omarchy, I'm struggling a lot to solve it.

Thank you for your attention!

lucasolima avatar Oct 19 '25 19:10 lucasolima

:checkhealth

wekauwau avatar Oct 19 '25 19:10 wekauwau

Same

rblalock avatar Oct 19 '25 19:10 rblalock

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.

j13y avatar Oct 19 '25 20:10 j13y

Yep same thing happened to me. Also no syntax highlighting for html

bpiroman avatar Oct 20 '25 02:10 bpiroman

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

lliamsymonds04 avatar Oct 20 '25 02:10 lliamsymonds04

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.

j13y avatar Oct 20 '25 04:10 j13y

Fix from #1970 worked!

Thank you guys for the help!

lucasolima avatar Oct 20 '25 16:10 lucasolima

Image

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.

sgruendel avatar Oct 20 '25 19:10 sgruendel

@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.

ryanrhughes avatar Oct 22 '25 17:10 ryanrhughes

Can confirm that running this worked

jvanbaarsen avatar Oct 23 '25 07:10 jvanbaarsen