luk400 / vim-jukit

Jupyter-Notebook inspired Neovim/Vim Plugin
MIT License
603 stars 23 forks source link

[Feature Request] Use treesitter for textcell highlighting #32

Closed igorlfs closed 1 year ago

igorlfs commented 1 year ago

Hey, this can be achieved by using an injection. That is, creating the file ~/.config/nvim/queries/python/injections.scm with the following content:

(
  (string_content) @markdown
  (#match? @markdown "°°°")
 )