Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #106 from Trouble-Truffle/nix-support
Browse files Browse the repository at this point in the history
Nix support
  • Loading branch information
SmiteshP authored Jun 9, 2022
2 parents 54ddf68 + 4e35b60 commit 88949a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Here is a example of how it can look in a fully configured statusline
* LaTeX
* Lua
* Norg
* Nix
* Ocaml
* Php
* Python
Expand Down
13 changes: 13 additions & 0 deletions queries/nix/nvimGPS.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
; Functions
((binding
attrpath: (attrpath) @function-name
expression: (function_expression))) @scope-root

((binding
attrpath: (attrpath) @function-name
expression: (parenthesized_expression expression: (function_expression))) @scope-root)

; Bindings
((binding
attrpath: (attrpath) @container-name) @scope-root)

0 comments on commit 88949a0

Please sign in to comment.