plugins.rainbow-delimiters.enable
Whether to enable rainbow-delimiters.nvim.
Type: boolean
Default:
false
Example:
true
Declared by:
plugins.rainbow-delimiters.package
The rainbow-delimiters.nvim package to use.
Type: package
Default:
pkgs.vimPlugins.rainbow-delimiters-nvim
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|
.
Type: null or (list of (string or raw lua code))
Default:
null
Plugin default:
[
"RainbowDelimiterRed"
"RainbowDelimiterYellow"
"RainbowDelimiterBlue"
"RainbowDelimiterOrange"
"RainbowDelimiterGreen"
"RainbowDelimiterViolet"
"RainbowDelimiterCyan"
]
Declared by:
plugins.rainbow-delimiters.query
Attrs mapping Tree-sitter language names to queries.
See |rb-delimiters-query|
for more information about queries.
Type: null or (attribute set of (string or raw lua code))
Default:
null
Plugin default:
{
default = "rainbow-delimiters";
lua = "rainbow-blocks";
}
Declared by:
plugins.rainbow-delimiters.strategy
Attrs mapping Tree-sitter language names to strategies.
See |rb-delimiters-strategy|
for more information about strategies.
Type: null or (attribute set of (one of “global”, “local”, “noop” or raw lua code))
Default:
null
Plugin default:
{
default = "global";
}
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
'';
}
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: