summaryrefslogtreecommitdiffstats
path: root/.config/nvim/queries
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-05-14 18:53:03 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-05-14 18:53:03 +0200
commit612dbb6993c8a548744f29a4d15d6b31325357c8 (patch)
tree0d61cee0ea74ac811268d0ffc00d3d55f7174112 /.config/nvim/queries
parent23e2bfd987c430bb41bc7860c46c2f572e9e2db4 (diff)
downloaddots-trunk.tar.gz
Tue May 14 06:53:03 PM CEST 2024HEADtrunk
Diffstat (limited to '.config/nvim/queries')
-rwxr-xr-x.config/nvim/queries/python/highlights.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/.config/nvim/queries/python/highlights.scm b/.config/nvim/queries/python/highlights.scm
index 2ea4847..a2179ec 100755
--- a/.config/nvim/queries/python/highlights.scm
+++ b/.config/nvim/queries/python/highlights.scm
@@ -1,5 +1,15 @@
; extends
-(block (expression_statement (string)) @docstring)
+; function and class docstring detection
+(block
+ (expression_statement
+ (string)) @docstring)
+; shpinx detection in docstring
+; (block
+; (expression_statement
+; (string
+; (string_content))) @type)
+
+; type hint detection
(type) @type
remember that computers suck.