neovim: Add illuminate
This commit is contained in:
parent
5555f83fa6
commit
9bc8933f55
|
@ -90,6 +90,7 @@ in
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
trouble-nvim
|
trouble-nvim
|
||||||
vim-fugitive
|
vim-fugitive
|
||||||
|
vim-illuminate
|
||||||
vim-markdown
|
vim-markdown
|
||||||
vim-nix
|
vim-nix
|
||||||
vim-openscad
|
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', ']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>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
||||||
buf_set_keymap('n', '<Leader>f', '<cmd>lua vim.lsp.buf.formatting()<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
|
end
|
||||||
|
|
||||||
lsp.gopls.setup {
|
lsp.gopls.setup {
|
||||||
|
|
Loading…
Reference in a new issue