Is there a way to use treesitter with snippets so you get context-dependent snippets in markdown?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • vimtex

    VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.

  • I write a lot of LaTeX and code embedded in markdown files, and I have amassed a collection of Ultisnip snippets for each use case. When I am working on a LaTeX file, I am able to get context-dependent snippets using the VimTeX plugin which exposes some nice functions:

  • tree-sitter-markdown

    Markdown grammar for tree-sitter (by ikatyang)

  • I am assuming that such context information might be available through the treesitter interface (https://ikatyang.github.io/tree-sitter-markdown/). I would appreciate any pointers that you may have on how I might be able to leverage this interface to get context-dependent snippets.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts