plugins.rainbow-delimiters.enable

Whether to enable rainbow-delimiters.nvim.

Type: boolean

Default: false

Example: true

Declared by:

plugins.rainbow-delimiters.package

Which package to use for the rainbow-delimiters.nvim plugin.

Type: package

Default: <derivation vimplugin-rainbow-delimiters.nvim-2024-05-11>

Declared by:

plugins.rainbow-delimiters.blacklist

List of Tree-sitter languages for which to disable rainbow delimiters. Rainbow delimiters will be enabled for all other languages.

Type: null or (list of string)

Default: null

Declared by:

plugins.rainbow-delimiters.extraOptions

These attributes will be added to the table parameter for the setup function. Typically, it can override NixVim’s default settings.

Type: attribute set of anything

Default: { }

Declared by:

plugins.rainbow-delimiters.highlight

List of names of the highlight groups to use for highlighting, for more information see |rb-delimiters-colors|.

Plugin default:

[
  "RainbowDelimiterRed"
  "RainbowDelimiterYellow"
  "RainbowDelimiterBlue"
  "RainbowDelimiterOrange"
  "RainbowDelimiterGreen"
  "RainbowDelimiterViolet"
  "RainbowDelimiterCyan"
]

Type: null or (list of string)

Default: null

Declared by:

plugins.rainbow-delimiters.query

Attrs mapping Tree-sitter language names to queries. See |rb-delimiters-query| for more information about queries.

Plugin default:

{
  default = "rainbow-delimiters";
  lua = "rainbow-blocks";
}

Type: null or (attribute set of string)

Default: null

Declared by:

plugins.rainbow-delimiters.strategy

Attrs mapping Tree-sitter language names to strategies. See |rb-delimiters-strategy| for more information about strategies.

Example:

  {
    # Use global strategy by default
    default = "global";

    # Use local for HTML
    html = "local";

    # Pick the strategy for LaTeX dynamically based on the buffer size
    latex.__raw = \'\'
      function()
        -- Disabled for very large files, global strategy for large files,
        -- local strategy otherwise
        if vim.fn.line('$') > 10000 then
            return nil
        elseif vim.fn.line('$') > 1000 then
            return require 'rainbow-delimiters'.strategy['global']
        end
        return require 'rainbow-delimiters'.strategy['local']
      end
    \'\';
  }

Plugin default:

{
  default = "global";
}

Type: null or (attribute set of (raw lua code or one of “global”, “local”, “noop”))

Default: null

Declared by:

plugins.rainbow-delimiters.whitelist

List of Tree-sitter languages for which to enable rainbow delimiters. Rainbow delimiters will be disabled for all other languages.

Type: null or (list of string)

Default: null

Declared by: