Example: https://nix-community.github.io/nixvim/plugins/trouble/luaConfig.html
The keys are programs.nixvim.plugins.<words-including-dashes>.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")
(#set! injection.combined)
)
Is the snippet above correct? (I just copied the Zsh section and changed the language and path.)
Usually programs.nixvim is not seen in the same file because it is imported under that key.
Example: https://nix-community.github.io/nixvim/plugins/trouble/luaConfig.html
The keys are
programs.nixvim.plugins.<words-including-dashes>.luaConfig.preand.post.Is the snippet above correct? (I just copied the Zsh section and changed the language and path.)
Usually
programs.nixvimis not seen in the same file because it is imported under that key.