How to inject rst in Python docstrings? #6358
Answered
by
stsewd
wisp3rwind
asked this question in
Q&A
-
There are multiple issues concerned with the parsing of Python docstrings: #4199, #1240, #806, #1204, #5585, #917. #1240 was closed with the comment "superseded by rewrite on main (and highlight/injection handling in upstream Neovim)", but from the documentation alone it's unclear to me how to achieve such injections. There's #4655, but that seems to be concerned with just changing the associated highlight group, not adding an injection. Thus: Is it currently possible to configure |
Beta Was this translation helpful? Give feedback.
Answered by
stsewd
Mar 25, 2024
Replies: 1 comment 1 reply
-
You can extend the injection query like this |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wisp3rwind
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can extend the injection query like this
https://github.com/stsewd/dotfiles/blob/ef7ee268a78456e2237f11211920daeacb7c2033/config/nvim/after/queries/python/injections.scm#L1-L4