update config to lazy
- add some new plugins - remove some old ones - clean up/update some configs
This commit is contained in:
35
lua/plugins/indent-blanklines.lua
Normal file
35
lua/plugins/indent-blanklines.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
config = function()
|
||||
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 = "#ED8796" })
|
||||
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#EED49F" })
|
||||
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#8AADF4" })
|
||||
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#F5A97F" })
|
||||
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#A6DA95" })
|
||||
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C6A0F6" })
|
||||
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#8BD5CA" })
|
||||
end)
|
||||
|
||||
vim.g.rainbow_delimiters = { highlight = highlight }
|
||||
require("ibl").setup({
|
||||
scope = { highlight = highlight },
|
||||
exclude = { filetypes = { "dashboard" } },
|
||||
})
|
||||
|
||||
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user