nvim-config

Log | Files | Refs | Submodules | README

commit 0bc65c96ee8b1593700497bb9e559d27997bd9e1
parent 86b3d117b0c57c9f79bdafb032b93de11056d4d8
Author: Thomas Vigouroux <tomvig38@gmail.com>
Date:   Sat,  1 May 2021 11:01:16 +0200

feat: add mapping for lsp references

Diffstat:
Mafter/plugin/config/nvim-lsp.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/after/plugin/config/nvim-lsp.vim b/after/plugin/config/nvim-lsp.vim @@ -1,4 +1,4 @@ -" Last Change: 2020 Nov 27 +" Last Change: 2021 Apr 20 " Utility to store lsp/completion config lua require'lsp_config' @@ -8,6 +8,7 @@ nnoremap <silent> gD <cmd>lua vim.lsp.buf.implementation()<CR> nnoremap <silent> <C-S-K> <cmd>lua vim.lsp.buf.signature_help()<CR> nnoremap <silent> 1gD <cmd>lua vim.lsp.buf.type_definition()<CR> nnoremap <silent> gr <cmd>lua vim.lsp.buf.rename()<CR> +nnoremap <silent> gR <cmd>lua vim.lsp.buf.references()<CR> nnoremap <silent> <Leader>= <cmd>lua vim.lsp.buf.formatting_sync()<CR> " autocmd CursorHold,CursorHoldI * lua vim.lsp.util.show_line_diagnostics()