From af2f16afa0dc3a52051380d0234addb8a22b6d77 Mon Sep 17 00:00:00 2001 From: Briain O'Driscoll Date: Tue, 31 May 2022 11:31:07 +0100 Subject: [PATCH] install vim-illuminate --- lua/user/illuminate.lua | 5 +++++ lua/user/plugins.lua | 1 + 2 files changed, 6 insertions(+) create mode 100644 lua/user/illuminate.lua 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"