From b267e33810941d4be4fdd6d531ead2032f2fb64f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 31 Dec 2022 17:03:56 +0100 Subject: [PATCH] feat(illuminate): added illuminate --- lua/plugins/coding.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 111d3bd347..1145b3b835 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -96,4 +96,29 @@ return { }) end, }, + + -- references + { + "RRethy/vim-illuminate", + event = "BufReadPost", + config = function() + require("illuminate").configure({ delay = 200 }) + end, + keys = { + { + "]]", + function() + require("illuminate").goto_next_reference(false) + end, + desc = "Next Reference", + }, + { + "[[", + function() + require("illuminate").goto_prev_reference(false) + end, + desc = "Prev Reference", + }, + }, + }, }