Bracket pair scope highlight like VS-Code - does it already exist?

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
  • indent-blankline.nvim

    Indent guides for Neovim

  • So I'm wondering if something like this already exists in another plugin I don't know. Theoretically all necessary features should be provided by NeoVim: Treesitter to "detect" the scope and virtual text anywhere to draw the actual lines with unicode characters. Indent-blankline.nvim is already drawing such a vertical lines virtually (also it does it for something else if you want to say so).

  • nvim-ts-rainbow

    Discontinued Rainbow parentheses for neovim using tree-sitter. Use https://sr.ht/~p00f/nvim-ts-rainbow instead

  • There is this cool plugin for VS-Code called Bracket Pair Colorizer. You can see an example in the image above. I'm especially interested into the options of showVerticalScopeLine and showHorizontalScopeLine. I know there exist already nvim-ts-rainbow wich solves the first feature of the above plugin. But it does not draw the scope lines.

  • 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-refactor

    Refactor module for nvim-treesitter

  • I also know that nvim-treesitter-refactor has the feature to highlight the current scope. But it does that by applying a highlight to the whole text in this scope (usually a background color only). Which looks kinda ugly as it does not apply to the full windows width and is in general too aggressive for the eye (my personal taste). Of course it also depends on your individual highlight settings.

  • monokai.nvim

    Monokai theme for Neovim written in Lua.

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