diff options
author | Joe <rrbo@proton.me> | 2023-09-08 16:13:42 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-08 16:13:42 +0200 |
commit | d5f27b49bd079f17dfa4e5395c0cb9b1e18143ef (patch) | |
tree | 7611c29ba65ee0b90db0e61fc823164b0ed3c73b /.config/nvim/lua/plugs-config/rainbow.lua | |
parent | up (diff) | |
download | dotfiles-bsd-d5f27b49bd079f17dfa4e5395c0cb9b1e18143ef.tar.gz dotfiles-bsd-d5f27b49bd079f17dfa4e5395c0cb9b1e18143ef.tar.bz2 dotfiles-bsd-d5f27b49bd079f17dfa4e5395c0cb9b1e18143ef.tar.xz dotfiles-bsd-d5f27b49bd079f17dfa4e5395c0cb9b1e18143ef.tar.zst dotfiles-bsd-d5f27b49bd079f17dfa4e5395c0cb9b1e18143ef.zip |
up
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/plugs-config/rainbow.lua | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugs-config/rainbow.lua b/.config/nvim/lua/plugs-config/rainbow.lua index 63e9c7c..e0951b8 100644 --- a/.config/nvim/lua/plugs-config/rainbow.lua +++ b/.config/nvim/lua/plugs-config/rainbow.lua @@ -1,2 +1,23 @@ -- Rainbow -vim.g.rainbow_active = 1 +-- This module contains a number of default definitions +local rainbow_delimiters = require 'rainbow-delimiters' + +vim.g.rainbow_delimiters = { + strategy = { + [''] = rainbow_delimiters.strategy['global'], + vim = rainbow_delimiters.strategy['local'], + }, + query = { + [''] = 'rainbow-delimiters', + lua = 'rainbow-blocks', + }, + highlight = { + 'RainbowDelimiterOrange', + 'RainbowDelimiterRed', + 'RainbowDelimiterYellow', + 'RainbowDelimiterBlue', + 'RainbowDelimiterGreen', + 'RainbowDelimiterViolet', + 'RainbowDelimiterCyan', + }, +} |