Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add Multiple indent colors in blankline.lua #2

Open
Jorpy76 opened this issue Mar 7, 2024 · 0 comments
Open

How to add Multiple indent colors in blankline.lua #2

Jorpy76 opened this issue Mar 7, 2024 · 0 comments

Comments

@Jorpy76
Copy link

Jorpy76 commented Mar 7, 2024

Hello José, I'm new in Nvim..

Yesterday, I commented on the YouTube channel. Congratulations for your Neovim tutorial. Question: I've tried to add multiple indent colors to the blankline configuration. How can this be done in the configuration? Thank you and cheers from Chile.

Hola José, Ayer te comenté en el canal de youtube. Mis felcitaciones por tu tutorial de nvim. Consulta : he intentado agregar a la configuación de blankline, Multiple indent colors. Como se puede realizar a la configuración? Gracias y saludos desde Chile.

`local highlight = {
"RainbowRed",
"RainbowYellow",
"RainbowBlue",
"RainbowOrange",
"RainbowGreen",
"RainbowViolet",
"RainbowCyan",
}

local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
end)

require("ibl").setup { indent = { highlight = highlight } }`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant