Skip to content

Commit

Permalink
Merge pull request #34 from jonasws/master
Browse files Browse the repository at this point in the history
feat(plugin): Add support for `rainbow-delimiters`
  • Loading branch information
maxmx03 authored Aug 23, 2024
2 parents f99f00b + ef689e5 commit bf07aaf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ return {
end,
plugins = {
["nvim-treesitter"] = true,
["rainbow-delimiters"] = true,
["nvim-lspconfig"] = true,
["nvim-navic"] = true,
["nvim-cmp"] = true,
Expand Down
1 change: 1 addition & 0 deletions doc/dracula.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lua/dracula/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ return {
on_colors = nil,
plugins = {
['nvim-treesitter'] = true,
['rainbow-delimiters'] = true,
['nvim-lspconfig'] = true,
['nvim-navic'] = true,
['nvim-cmp'] = true,
Expand Down
10 changes: 10 additions & 0 deletions lua/dracula/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit bf07aaf

Please sign in to comment.