Files
AstroVim_Config/lua/plugins/ts-rainbow.lua
2024-08-20 07:23:08 +07:00

43 lines
1.1 KiB
Lua

return {
{
"HiPhish/rainbow-delimiters.nvim",
-- event = { "InsertLeave", "TextChanged" },
event = "TextChanged",
dependencies = {
"nvim-treesitter/nvim-treesitter",
{
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>u("] = {
function()
local bufnr = vim.api.nvim_get_current_buf()
require("rainbow-delimiters").toggle(bufnr)
require("astrocore").notify(
string.format(
"Buffer rainbow delimeters %s",
require("rainbow-delimiters").is_enabled(bufnr) and "on" or "off"
)
)
end,
desc = "Toggle rainbow delimeters (buffer)",
},
},
},
},
},
},
-- specs = {
-- {
-- "catppuccin",
-- optional = true,
-- ---@type CatppuccinOptions
-- opts = { integrations = { rainbow_delimiters = true } },
-- },
-- },
main = "rainbow-delimiters.setup",
opts = {},
},
}