this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[nvim] Add vim-illuminate

+9 -9
+1
nvim/init.lua
··· 16 16 require "plugins.toggleterm" 17 17 require "plugins.alpha" 18 18 require "plugins.whichkey" 19 + require "plugins.illuminate"
+6 -9
nvim/lua/core/lsp/handlers.lua
··· 42 42 end 43 43 44 44 local function lsp_highlight_document(client) 45 - -- Set autocommands conditional on server_capabilities 45 + -- TODO: check if `resolved_capabilities` also works in v0.8 (nightly) 46 46 if client.resolved_capabilities.document_highlight then 47 - vim.api.nvim_exec( 48 - [[ 49 - augroup lsp_document_highlight 50 - autocmd! * <buffer> 51 - autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight() 52 - autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references() 53 - augroup END 54 - ]], false) 47 + local status_ok, illuminate = pcall(require, "illuminate") 48 + if not status_ok then 49 + return 50 + end 51 + illuminate.on_attach(client) 55 52 end 56 53 end 57 54
+1
nvim/lua/core/plugins.lua
··· 82 82 -- LSP 83 83 use "neovim/nvim-lspconfig" -- enable LSP 84 84 use "williamboman/nvim-lsp-installer" -- simple to use language server installer 85 + use "RRethy/vim-illuminate" -- highlighting other uses of a word 85 86 use "jose-elias-alvarez/null-ls.nvim" -- for formatters and linters 86 87 use "jose-elias-alvarez/nvim-lsp-ts-utils" -- typescript dev utils 87 88 -- Language specific plugins (doesn't depend on nvim-lspconfg)
+1
nvim/lua/plugins/illuminate.lua
··· 1 + vim.g.Illuminate_ftblacklist = {'alpha', 'NvimTree'}