From 801f005020439238c226882f5f58ba32adce4ca2 Mon Sep 17 00:00:00 2001 From: izumin5210 Date: Mon, 6 Nov 2023 09:00:53 +0900 Subject: [PATCH] integrate rainbow-delimiters.nvim with indent-blankline.nvim --- config/.config/nvim/init.lua | 8 ++++++++ config/.config/nvim/lua/pluginconfig/treesitter.lua | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/.config/nvim/init.lua b/config/.config/nvim/init.lua index 9d7624d7..33c37c21 100644 --- a/config/.config/nvim/init.lua +++ b/config/.config/nvim/init.lua @@ -352,8 +352,16 @@ require('lazy').setup({ }, scope = { show_start = false, + highlight = { + 'RainbowDelimiterRed', + 'RainbowDelimiterYellow', + 'RainbowDelimiterGreen', + 'RainbowDelimiterBlue', + } }, }) + local hooks = require('ibl.hooks') + hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark) end }, { diff --git a/config/.config/nvim/lua/pluginconfig/treesitter.lua b/config/.config/nvim/lua/pluginconfig/treesitter.lua index 6f011d22..6af59cec 100644 --- a/config/.config/nvim/lua/pluginconfig/treesitter.lua +++ b/config/.config/nvim/lua/pluginconfig/treesitter.lua @@ -1,7 +1,9 @@ local M = {} function M.setup_treesitter_context() - require('treesitter-context').setup() + require('treesitter-context').setup({ + max_lines = 4, + }) end function M.init_rainbow_delimiters()