Neovim syntax highlight

How can I get syntax highlight for nix inside neovim (without home-manager) ?

I’m using tree-sitter-nix; I’m not sure if there’s some better way.

I want to shill this work a little: Upstreaming nix syntax into {neo-,}vim tree

I think having syntax upstreamed to vim would be a pretty nice win

I’ve been using the vim-nix plugin for this. If Nix isn’t managing your vim install, you can just clone it to your neovim packages directory. If Nix is managing your vim install, you can set packages on your programs.neovim.configure attribute.

Hosted by Flying Circus.