mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
style: apply lisp-style to nix injections
This commit is contained in:
parent
165eaf5864
commit
c6db88c23b
1 changed files with 5 additions and 11 deletions
|
|
@ -133,13 +133,11 @@
|
|||
;; (nixosTest) testScript
|
||||
((binding
|
||||
attrpath: (attrpath) @_attr_name
|
||||
(#eq? @_attr_name "nodes")
|
||||
)
|
||||
(#eq? @_attr_name "nodes"))
|
||||
(binding
|
||||
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))
|
||||
|
||||
;; home-manager Neovim plugin config
|
||||
|
|
@ -148,16 +146,12 @@
|
|||
(binding
|
||||
attrpath: (attrpath) @_ty_attr
|
||||
(_
|
||||
(string_fragment) @_ty
|
||||
)
|
||||
(string_fragment) @_ty)
|
||||
(#eq? @_ty_attr "type")
|
||||
(#eq? @_ty "lua"))
|
||||
(binding
|
||||
|
||||
attrpath: (attrpath) @_cfg_attr
|
||||
(_
|
||||
(string_fragment) @injection.content (#set! injection.language "lua")
|
||||
)
|
||||
(#eq? @_cfg_attr "config")
|
||||
))
|
||||
(string_fragment) @injection.content (#set! injection.language "lua"))
|
||||
(#eq? @_cfg_attr "config")))
|
||||
(#set! injection.combined))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue