From 90754c10b9539fd021746e9c6b69ab9c1bc376af Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Thu, 16 Sep 2021 18:18:44 -0400 Subject: [PATCH] Add map for LSP rename --- mapping.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/mapping.vim b/mapping.vim index 39ff7eb..4f21ebe 100644 --- a/mapping.vim +++ b/mapping.vim @@ -24,6 +24,7 @@ nnoremap g0 lua vim.lsp.buf.document_symbol() nnoremap gW lua vim.lsp.buf.workspace_symbol() nnoremap gd lua vim.lsp.buf.definition() nnoremap ga lua vim.lsp.buf.code_action() +nnoremap rn lua vim.lsp.buf.rename() " Goto previous/next diagnostic warning/error nnoremap g[ lua vim.lsp.diagnostic.goto_prev()