mirror of
https://github.com/cap153/nvim.git
synced 2025-12-27 03:34:57 +08:00
21 lines
715 B
Lua
21 lines
715 B
Lua
-- ===
|
||
-- === rainbow,彩虹括号,必须要保证安装了treesitter,我分开是为了方便通过文件查找配置
|
||
-- ===
|
||
|
||
return {
|
||
'p00f/nvim-ts-rainbow',
|
||
config = function()
|
||
require("nvim-treesitter.configs").setup {
|
||
rainbow = {
|
||
-- `false` will disable the whole extension
|
||
enable = true,
|
||
-- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
|
||
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
|
||
max_file_lines = nil, -- Do not enable for files with more than n lines, int
|
||
-- colors = {}, -- table of hex strings
|
||
-- termcolors = {} -- table of colour name strings
|
||
}
|
||
}
|
||
end
|
||
}
|
||
|