From 18292749c1642debbc4704762dc15fce3fce3289 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 24 Jan 2020 15:25:09 +0530 Subject: [PATCH] nvim: Use local leader as key prefix for LC bindings Using 'l' sometimes lead to false trigger as we also use it as our primary 'Right' movement key. Signed-off-by: Sanchayan Maity --- nvim/.config/nvim/init.vim | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 8a5efdc..df31eaf 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -718,16 +718,16 @@ function! SetLspKeybindings() nnoremap K :call LanguageClient#textDocument_hover() nnoremap ge :call LanguageClient#explainErrorAtPoint() - nnoremap lcs :LanguageClientStart - nnoremap lch :LanguageClientStop - nnoremap lcm :call LanguageClient_contextMenu() - nnoremap ltd :call LanguageClient#textDocument_typeDefinition() - nnoremap ldi :call LanguageClient#textDocument_implementation() - nnoremap lcl :call LanguageClient#textDocument_codeLens() - nnoremap lca :call LanguageClient#textDocument_codeAction() - nnoremap lrf :call LanguageClient#textDocument_rangeFormatting() - nnoremap lf :call LanguageClient#textDocument_formatting() - nnoremap la :call LanguageClient_workspace_applyEdit() - nnoremap lc :call LanguageClient#textDocument_completion() - nnoremap ls :call LanguageClient_textDocument_documentSymbol() + nnoremap cs :LanguageClientStart + nnoremap ch :LanguageClientStop + nnoremap cm :call LanguageClient_contextMenu() + nnoremap td :call LanguageClient#textDocument_typeDefinition() + nnoremap di :call LanguageClient#textDocument_implementation() + nnoremap cl :call LanguageClient#textDocument_codeLens() + nnoremap ca :call LanguageClient#textDocument_codeAction() + nnoremap rf :call LanguageClient#textDocument_rangeFormatting() + nnoremap f :call LanguageClient#textDocument_formatting() + nnoremap a :call LanguageClient_workspace_applyEdit() + nnoremap c :call LanguageClient#textDocument_completion() + nnoremap s :call LanguageClient_textDocument_documentSymbol() endfunction