mirror of
https://github.com/maxmx03/dracula.nvim.git
synced 2026-09-10 07:26:19 -04:00
Merge pull request #34 from jonasws/master
feat(plugin): Add support for `rainbow-delimiters`
This commit is contained in:
commit
bf07aafd83
|
|
@ -71,6 +71,7 @@ return {
|
||||||
end,
|
end,
|
||||||
plugins = {
|
plugins = {
|
||||||
["nvim-treesitter"] = true,
|
["nvim-treesitter"] = true,
|
||||||
|
["rainbow-delimiters"] = true,
|
||||||
["nvim-lspconfig"] = true,
|
["nvim-lspconfig"] = true,
|
||||||
["nvim-navic"] = true,
|
["nvim-navic"] = true,
|
||||||
["nvim-cmp"] = true,
|
["nvim-cmp"] = true,
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ Annotations can be enabled. Below is an example of how to enable them.
|
||||||
end,
|
end,
|
||||||
plugins = {
|
plugins = {
|
||||||
["nvim-treesitter"] = true,
|
["nvim-treesitter"] = true,
|
||||||
|
["rainbow-delimiters"] = true,
|
||||||
["nvim-lspconfig"] = true,
|
["nvim-lspconfig"] = true,
|
||||||
["nvim-navic"] = true,
|
["nvim-navic"] = true,
|
||||||
["nvim-cmp"] = true,
|
["nvim-cmp"] = true,
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ return {
|
||||||
on_colors = nil,
|
on_colors = nil,
|
||||||
plugins = {
|
plugins = {
|
||||||
['nvim-treesitter'] = true,
|
['nvim-treesitter'] = true,
|
||||||
|
['rainbow-delimiters'] = true,
|
||||||
['nvim-lspconfig'] = true,
|
['nvim-lspconfig'] = true,
|
||||||
['nvim-navic'] = true,
|
['nvim-navic'] = true,
|
||||||
['nvim-cmp'] = true,
|
['nvim-cmp'] = true,
|
||||||
|
|
|
||||||
|
|
@ -549,6 +549,16 @@ M.set_highlight = function(colors, config)
|
||||||
nvim_set_hl('@property.scss', { fg = colors.cyan })
|
nvim_set_hl('@property.scss', { fg = colors.cyan })
|
||||||
end
|
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
|
if config.plugins['nvim-lspconfig'] then
|
||||||
nvim_set_hl('@lsp.type.class', { link = 'Type' })
|
nvim_set_hl('@lsp.type.class', { link = 'Type' })
|
||||||
nvim_set_hl('@lsp.type.decorator', { fg = colors.green })
|
nvim_set_hl('@lsp.type.decorator', { fg = colors.green })
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue