neovim: Add illuminate

This commit is contained in:
Simon Bruder 2022-06-12 22:34:27 +02:00
parent 5555f83fa6
commit 9bc8933f55
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 5 additions and 0 deletions

View file

@ -90,6 +90,7 @@ in
telescope-nvim
trouble-nvim
vim-fugitive
vim-illuminate
vim-markdown
vim-nix
vim-openscad

View file

@ -273,6 +273,10 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
buf_set_keymap('n', '<Leader>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
buf_set_keymap('n', '<Leader>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
require('illuminate').on_attach(client)
buf_set_keymap('n', '<a-n>', '<cmd>lua require("illuminate").next_reference{wrap=true}<CR>', { noremap = true })
buf_set_keymap('n', '<a-p>', '<cmd>lua require("illuminate").next_reference{reverse=true,wrap=true}<CR>', { noremap = true })
end
lsp.gopls.setup {