diff --git a/lua/user/illuminate.lua b/lua/user/illuminate.lua new file mode 100644 index 0000000..2642096 --- /dev/null +++ b/lua/user/illuminate.lua @@ -0,0 +1,5 @@ +-- vim.g.Illuminate_delay = 0 +-- vim.g.Illuminate_highlightUnderCursor = 0 +vim.g.Illuminate_ftblacklist = {'alpha', 'NvimTree'} +vim.api.nvim_set_keymap('n', '', 'lua require"illuminate".next_reference{wrap=true}', {noremap=true}) +vim.api.nvim_set_keymap('n', '', 'lua require"illuminate".next_reference{reverse=true,wrap=true}', {noremap=true}) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 2aa1f93..38f4e12 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -46,6 +46,7 @@ return packer.startup(function(use) use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins use "windwp/nvim-autopairs" -- Autopairs, integrates with both cmp and treesitter use "numToStr/Comment.nvim" -- Easily comment stuff + use "RRethy/vim-illuminate" -- Illuminate other uses of current word/symbol under cursor use "kyazdani42/nvim-web-devicons" use "kyazdani42/nvim-tree.lua" use "akinsho/bufferline.nvim"