Merge pull request #34 from jonasws/master

feat(plugin): Add support for `rainbow-delimiters`
This commit is contained in:
Max Del Canto 2024-08-23 05:12:35 -03:00 committed by GitHub
commit bf07aafd83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 0 deletions

View file

@ -71,6 +71,7 @@ return {
end,
plugins = {
["nvim-treesitter"] = true,
["rainbow-delimiters"] = true,
["nvim-lspconfig"] = true,
["nvim-navic"] = true,
["nvim-cmp"] = true,

View file

@ -80,6 +80,7 @@ Annotations can be enabled. Below is an example of how to enable them.
end,
plugins = {
["nvim-treesitter"] = true,
["rainbow-delimiters"] = true,
["nvim-lspconfig"] = true,
["nvim-navic"] = true,
["nvim-cmp"] = true,

View file

@ -29,6 +29,7 @@ return {
on_colors = nil,
plugins = {
['nvim-treesitter'] = true,
['rainbow-delimiters'] = true,
['nvim-lspconfig'] = true,
['nvim-navic'] = true,
['nvim-cmp'] = true,

View file

@ -549,6 +549,16 @@ M.set_highlight = function(colors, config)
nvim_set_hl('@property.scss', { fg = colors.cyan })
end
if config.plugins['rainbow-delimiters'] then
nvim_set_hl('RainbowDelimiterRed', { fg = colors.red })
nvim_set_hl('RainbowDelimiteYellow', { fg = colors.yellow })
nvim_set_hl('RainbowDelimiterBlue', { fg = colors.blue })
nvim_set_hl('RainbowDelimiterOrange', { fg = colors.orange })
nvim_set_hl('RainbowDelimiterGreen', { fg = colors.green })
nvim_set_hl('RainbowDelimiterViolet', { fg = colors.violet })
nvim_set_hl('RainbowDelimiterCyan', { fg = colors.cyan })
end
if config.plugins['nvim-lspconfig'] then
nvim_set_hl('@lsp.type.class', { link = 'Type' })
nvim_set_hl('@lsp.type.decorator', { fg = colors.green })