style: apply lisp-style to nix injections

This commit is contained in:
Marc Jakobi 2023-07-13 17:47:39 +02:00 committed by Christian Clason
parent 165eaf5864
commit c6db88c23b

View file

@ -133,13 +133,11 @@
;; (nixosTest) testScript ;; (nixosTest) testScript
((binding ((binding
attrpath: (attrpath) @_attr_name attrpath: (attrpath) @_attr_name
(#eq? @_attr_name "nodes") (#eq? @_attr_name "nodes"))
)
(binding (binding
attrpath: (attrpath) @_func_name (#eq? @_func_name "testScript") attrpath: (attrpath) @_func_name (#eq? @_func_name "testScript")
(_ (_
(string_fragment) @injection.content (#set! injection.language "python") (string_fragment) @injection.content (#set! injection.language "python")))
))
(#set! injection.combined)) (#set! injection.combined))
;; home-manager Neovim plugin config ;; home-manager Neovim plugin config
@ -148,16 +146,12 @@
(binding (binding
attrpath: (attrpath) @_ty_attr attrpath: (attrpath) @_ty_attr
(_ (_
(string_fragment) @_ty (string_fragment) @_ty)
)
(#eq? @_ty_attr "type") (#eq? @_ty_attr "type")
(#eq? @_ty "lua")) (#eq? @_ty "lua"))
(binding (binding
attrpath: (attrpath) @_cfg_attr attrpath: (attrpath) @_cfg_attr
(_ (_
(string_fragment) @injection.content (#set! injection.language "lua") (string_fragment) @injection.content (#set! injection.language "lua"))
) (#eq? @_cfg_attr "config")))
(#eq? @_cfg_attr "config")
))
(#set! injection.combined)) (#set! injection.combined))