mirror of https://github.com/helix-editor/helix
feat: add python context queries
Add context queries for the sticky-context feature, so python classes and functions show up as wellpull/6118/merge^2
parent
12ffcb0d39
commit
2f3b481142
@ -0,0 +1,15 @@
|
||||
(function_definition
|
||||
_ parameters: (_) @context.params
|
||||
) @context
|
||||
|
||||
(class_definition) @context
|
||||
|
||||
[
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(with_statement)
|
||||
(try_statement)
|
||||
(match_statement)
|
||||
(case_clause)
|
||||
] @context
|
Loading…
Reference in New Issue