cap153_nvim/lua/lazy/plugins/rainbow.lua
2024-10-07 15:29:32 +08:00

21 lines
715 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ===
-- === 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
}