2024-01-31 21:13:31 +00:00
|
|
|
-- import rainbow-delimeters safely
|
|
|
|
local setup, rd = pcall(require, "rainbow-delimiters.setup")
|
|
|
|
if not setup then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
rd.setup({
|
|
|
|
-- change the default colour order
|
|
|
|
-- only use three colours, to match One Dark theme in VSCode
|
|
|
|
highlight = {
|
|
|
|
"RainbowDelimiterYellow",
|
|
|
|
"RainbowDelimiterViolet",
|
|
|
|
"RainbowDelimiterCyan",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- change colour values to match One Dark
|
2024-02-23 14:24:43 +00:00
|
|
|
vim.api.nvim_set_hl(0, "RainbowDelimiterViolet", { foreground = "#d3869b" })
|
|
|
|
vim.api.nvim_set_hl(0, "RainbowDelimiterYellow", { foreground = "#fabd2f" })
|
|
|
|
vim.api.nvim_set_hl(0, "RainbowDelimiterCyan", { foreground = "#fe8019" })
|