neovim: Add illuminate
This commit is contained in:
parent
5555f83fa6
commit
9bc8933f55
|
@ -90,6 +90,7 @@ in
|
|||
telescope-nvim
|
||||
trouble-nvim
|
||||
vim-fugitive
|
||||
vim-illuminate
|
||||
vim-markdown
|
||||
vim-nix
|
||||
vim-openscad
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue