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 <maitysanchayan@gmail.com>
This commit is contained in:
parent
b111ac8298
commit
18292749c1
1 changed files with 12 additions and 12 deletions
|
@ -718,16 +718,16 @@ function! SetLspKeybindings()
|
||||||
nnoremap K :call LanguageClient#textDocument_hover()<CR>
|
nnoremap K :call LanguageClient#textDocument_hover()<CR>
|
||||||
nnoremap ge :call LanguageClient#explainErrorAtPoint()<CR>
|
nnoremap ge :call LanguageClient#explainErrorAtPoint()<CR>
|
||||||
|
|
||||||
nnoremap lcs :LanguageClientStart<CR>
|
nnoremap <LocalLeader>cs :LanguageClientStart<CR>
|
||||||
nnoremap lch :LanguageClientStop<CR>
|
nnoremap <LocalLeader>ch :LanguageClientStop<CR>
|
||||||
nnoremap lcm :call LanguageClient_contextMenu()<CR>
|
nnoremap <LocalLeader>cm :call LanguageClient_contextMenu()<CR>
|
||||||
nnoremap ltd :call LanguageClient#textDocument_typeDefinition()<CR>
|
nnoremap <LocalLeader>td :call LanguageClient#textDocument_typeDefinition()<CR>
|
||||||
nnoremap ldi :call LanguageClient#textDocument_implementation()<CR>
|
nnoremap <LocalLeader>di :call LanguageClient#textDocument_implementation()<CR>
|
||||||
nnoremap lcl :call LanguageClient#textDocument_codeLens()<CR>
|
nnoremap <LocalLeader>cl :call LanguageClient#textDocument_codeLens()<CR>
|
||||||
nnoremap lca :call LanguageClient#textDocument_codeAction()<CR>
|
nnoremap <LocalLeader>ca :call LanguageClient#textDocument_codeAction()<CR>
|
||||||
nnoremap lrf :call LanguageClient#textDocument_rangeFormatting()<CR>
|
nnoremap <LocalLeader>rf :call LanguageClient#textDocument_rangeFormatting()<CR>
|
||||||
nnoremap lf :call LanguageClient#textDocument_formatting()<CR>
|
nnoremap <LocalLeader>f :call LanguageClient#textDocument_formatting()<CR>
|
||||||
nnoremap la :call LanguageClient_workspace_applyEdit()<CR>
|
nnoremap <LocalLeader>a :call LanguageClient_workspace_applyEdit()<CR>
|
||||||
nnoremap lc :call LanguageClient#textDocument_completion()<CR>
|
nnoremap <LocalLeader>c :call LanguageClient#textDocument_completion()<CR>
|
||||||
nnoremap ls :call LanguageClient_textDocument_documentSymbol()<CR>
|
nnoremap <LocalLeader>s :call LanguageClient_textDocument_documentSymbol()<CR>
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue