1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-09 15:01:13 +00:00
dotfiles/.config/nvim/lua/plugins/illuminate.lua

33 lines
709 B
Lua
Raw Normal View History

2022-10-08 10:44:11 +00:00
local status_ok, illuminate = pcall(require, "illuminate")
if not status_ok then
return
end
2022-10-01 11:46:18 +00:00
vim.api.nvim_set_keymap("n", "<a-n>", '<cmd>lua require"illuminate".next_reference{wrap=true}<cr>', { noremap = true })
vim.api.nvim_set_keymap(
"n",
"<a-p>",
'<cmd>lua require"illuminate".next_reference{reverse=true,wrap=true}<cr>',
{ noremap = true }
)
2022-10-08 10:44:11 +00:00
illuminate.configure({
providers = {
"lsp",
"treesitter",
"regex",
},
delay = 200,
filetypes_denylist = {
"neo-tree",
"packer",
"Trouble",
"TelescopePrompt",
},
filetypes_allowlist = {},
modes_denylist = {},
modes_allowlist = {},
providers_regex_syntax_denylist = {},
providers_regex_syntax_allowlist = {},
under_cursor = true,
})