Treesitter plugin for dynamically setting commentstring

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
  • nvim-ts-context-commentstring

    Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.

  • Ohh I see what you mean. That would be awesome indeed. I created an issue for tracking this idea: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/issues/3

  • vim-context-commentstring

    Vim plugin that sets the value of ‘commentstring’ to a different value depending on the region of the file you are in.

  • I previously used suy/vim-context-commentstring for dynamically setting the commentstring setting, but since it doesn't really work with treesitter, I decided to create a new version that does work with treesitter.

  • 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
  • nvim-treesitter

    Nvim Treesitter configurations and abstraction layer

  • But I don't think my plugin actually sees injected language nodes at the moment, so injected languages within injected languages probably wouldn't work. I think that this might be related to this issue: https://github.com/nvim-treesitter/nvim-treesitter/issues/1023

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