hmts.nvim
hmts.nvim copied to clipboard
Custom treesitter queries for Home Manager nix files, in Neovim
Was spending some time trying to figure out why my NixVim installation was running slower, enabling and disabling just about everything until looking at this plugin. Nothing else makes a...
On line 44, I do string interpolation, and the Lua highlighting is broken after that. 
Follow-up to #9 Find a way to support arbitrarily complex ways to write shebangs. For example, this doesn't work: `!#${pkgs.bash}/bin/bash`. This is because the nix variable in the middle makes...
When I annotate a string (eg. a neovim-plugin's config with `/* lua */`, I get proper syntax highlighting only for that string, but now in all of the rest of...
Issue to track what's happening there: https://github.com/neovim/neovim/issues/30792 The latest neovim nightly breaks `TSNode:field()` that we rely on. There's a way to work around it but it's probably not worth it...
Example: https://nix-community.github.io/nixvim/plugins/trouble/luaConfig.html The keys are `programs.nixvim.plugins..luaConfig.pre` and `.post`. ``` ; Lua (binding attrpath: (_) @_path (#hmts-path? @_path "programs" "nixvim" "plugins" ".*" "luaConfig" "(post|pre)$") expression: (_ (string_fragment) @injection.content) (#set! injection.language "lua")...