-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathvim-illuminate.lua
More file actions
54 lines (52 loc) · 1.86 KB
/
vim-illuminate.lua
File metadata and controls
54 lines (52 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
-- https://github.com/RRethy/vim-illuminate
-- default configuration
require("illuminate").configure({
-- providers: provider used to get references in the buffer, ordered by priority
providers = {
"treesitter",
"regex",
},
-- delay: delay in milliseconds
delay = 100,
-- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist
filetypes_denylist = {
"dirvish",
"fugitive",
"vista_kind",
"help",
"terminal",
"term://*",
"packer",
"markdown",
"git",
"text",
"txt",
"NvimTree",
"dashboard",
"alpha",
"Outline",
"NeogitStatus",
"NeogitPopup",
"DiffviewFiles",
"TelescopePrompt",
"TelescopeResults",
},
-- filetypes_allowlist: filetypes to illuminate, this is overriden by filetypes_denylist
filetypes_allowlist = {},
-- modes_denylist: modes to not illuminate, this overrides modes_allowlist
modes_denylist = {},
-- modes_allowlist: modes to illuminate, this is overriden by modes_denylist
modes_allowlist = {},
-- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist
-- Only applies to the 'regex' provider
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
providers_regex_syntax_denylist = {},
-- providers_regex_syntax_allowlist: syntax to illuminate, this is overriden by providers_regex_syntax_denylist
-- Only applies to the 'regex' provider
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
providers_regex_syntax_allowlist = {},
-- under_cursor: whether or not to illuminate under the cursor
under_cursor = true,
})
vim.keymap.set("n", "]r", require("illuminate").goto_next_reference, { desc = "Move to next reference" })
vim.keymap.set("n", "[r", require("illuminate").goto_prev_reference, { desc = "Move to previous reference" })