Skip to content

Lua for Nixvim plugins #27

@auipga

Description

@auipga

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions