From 8c712b64200d1204a98dd09ee23506e638969540 Mon Sep 17 00:00:00 2001 From: Trouble-Truffle Date: Tue, 31 May 2022 11:37:37 +0800 Subject: [PATCH] Added Nix support --- README.md | 1 + queries/nix/nvimGPS.scm | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 queries/nix/nvimGPS.scm diff --git a/README.md b/README.md index 3c1f5d9..73e03c0 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Here is a example of how it can look in a fully configured statusline * LaTeX * Lua * Norg +* Nix * Ocaml * Php * Python diff --git a/queries/nix/nvimGPS.scm b/queries/nix/nvimGPS.scm new file mode 100644 index 0000000..1ac6313 --- /dev/null +++ b/queries/nix/nvimGPS.scm @@ -0,0 +1,10 @@ +; Functions +((binding + attrpath: (attrpath) @function-name + expression: (parenthesized_expression expression: (function_expression))) @scope-root) + +; Bindings +((binding + attrpath: (attrpath) @container-name) @scope-root) + +