39 lines
924 B
Lua
39 lines
924 B
Lua
|
local status_ok, illuminate = pcall(require, "illuminate")
|
||
|
if not status_ok then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
vim.g.Illuminate_ftblacklist = {'alpha', 'NvimTree'}
|
||
|
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})
|
||
|
|
||
|
illuminate.configure {
|
||
|
providers = {
|
||
|
"lsp",
|
||
|
"treesitter",
|
||
|
"regex",
|
||
|
},
|
||
|
delay = 200,
|
||
|
filetypes_denylist = {
|
||
|
"dirvish",
|
||
|
"fugitive",
|
||
|
"alpha",
|
||
|
"NvimTree",
|
||
|
"packer",
|
||
|
"neogitstatus",
|
||
|
"Trouble",
|
||
|
"lir",
|
||
|
"Outline",
|
||
|
"spectre_panel",
|
||
|
"toggleterm",
|
||
|
"DressingSelect",
|
||
|
"TelescopePrompt",
|
||
|
},
|
||
|
filetypes_allowlist = {},
|
||
|
modes_denylist = {},
|
||
|
modes_allowlist = {},
|
||
|
providers_regex_syntax_denylist = {},
|
||
|
providers_regex_syntax_allowlist = {},
|
||
|
under_cursor = true,
|
||
|
}
|