1
0
Fork 0

neovim: Configure illuminate

This commit is contained in:
Jeremy Kaplan 2025-08-11 11:12:47 -04:00
commit 8ee3b57e3a
3 changed files with 20 additions and 1 deletions

View file

@ -145,6 +145,11 @@ local theme = lush(function(injected_functions)
-- lukas-reineke/indent-blankline.nvim -- lukas-reineke/indent-blankline.nvim
IblIndent { fg = "#000000" }, IblIndent { fg = "#000000" },
-- RRethy/vim-illuminate
IlluminatedWordText { bold = true },
IlluminatedWordRead { IlluminatedWordText },
IlluminatedWordWrite { IlluminatedWordText, underline = true },
-- For :Lushify to work, the groups have to be spelled as `sym` called -- For :Lushify to work, the groups have to be spelled as `sym` called
-- on a string literal. -- on a string literal.

View file

@ -145,6 +145,11 @@ local theme = lush(function(injected_functions)
-- lukas-reineke/indent-blankline.nvim -- lukas-reineke/indent-blankline.nvim
IblIndent { fg = "#eeeeee" }, IblIndent { fg = "#eeeeee" },
-- RRethy/vim-illuminate
IlluminatedWordText { bold = true },
IlluminatedWordRead { IlluminatedWordText },
IlluminatedWordWrite { IlluminatedWordText, underline = true },
-- For :Lushify to work, the groups have to be spelled as `sym` called -- For :Lushify to work, the groups have to be spelled as `sym` called
-- on a string literal. -- on a string literal.

View file

@ -64,8 +64,17 @@ return {
}, },
{ {
"RRethy/vim-illuminate", "RRethy/vim-illuminate",
init = function()
local illuminate = require('illuminate')
illuminate.configure({
delay = 500,
})
end,
keys = { keys = {
{ "<leader>i", ":IlluminateToggle<cr>" }, { "<leader>ii", function() require('illuminate').toggle_buf() end },
{ "<leader>in", function() require('illuminate').goto_next_reference() end },
{ "<leader>ip", function() require('illuminate').goto_prev_reference() end },
{ "<leader>if", function() require('illuminate').toggle_freeze_buf() end },
}, },
}, },
{ {