mirror of
https://github.com/cap153/nvim.git
synced 2025-12-27 11:45:30 +08:00
first commit
This commit is contained in:
commit
6955e90e07
61 changed files with 3641 additions and 0 deletions
21
lua/lazy/plugins/rainbow.lua
Normal file
21
lua/lazy/plugins/rainbow.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
-- ===
|
||||
-- === 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
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue