From 8770fac2cb5bd81b829e04ce4cc815984f9006d7 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 27 Dec 2024 18:49:46 +0100 Subject: [PATCH] Add vim-illuminate --- nvim/lua/plugins/treesitter.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index 6c553ff..887a831 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -42,4 +42,27 @@ return { require("ts-comments").setup({}) end, }, + + { + "vim-illuminate", + lazy = false, + load = function() end, + event = { "BufReadPost", "BufWritePost", "BufNewFile" }, + opts = { + providers = { + "lsp", + "treesitter", + }, + under_cursor = false, + min_count_to_highlight = 2, + delay = 200, + large_file_cutoff = 2000, + large_file_overrides = { + providers = { "lsp" }, + }, + }, + after = function(plug) + require("illuminate").configure(plug.opts) + end, + }, }