diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 111d3bd3..1145b3b8 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", + }, + }, + }, }