]> Untitled Git - vimfiles.git/commitdiff
Update LC mappings
authorPhilippe Hürlimann <p@hurlimann.org>
Tue, 25 Jan 2022 11:33:29 +0000 (12:33 +0100)
committerPhilippe Hürlimann <p@hurlimann.org>
Tue, 25 Jan 2022 11:33:29 +0000 (12:33 +0100)
init.vim

index 8b15afd6099c272f6efbd33af1c0d2bf2d23f02b..840511080bfc340a9b60da064e16ff3ee37b67de 100644 (file)
--- a/init.vim
+++ b/init.vim
@@ -84,15 +84,17 @@ function LC_maps()
         nmap <buffer> <silent> <F2> <Plug>(lcn-rename)
         nmap <buffer> <silent> gD <Plug>(lcn-type-definition)
         nmap <buffer> <silent><Leader>la <Plug>(lcn-code-action)
-        nmap <buffer> <silent><Leader>lb <Plug>(lcn-references)
+        vmap <buffer> <silent><Leader>la <Plug>(lcn-code-action)
+        nmap <buffer> <silent><Leader>lr <Plug>(lcn-references)
         nmap <buffer> <silent><Leader>lf <Plug>(lcn-format)
         nmap <buffer> <silent><Leader>ls <Plug>(lcn-symbols)
         nmap <buffer> <silent><Leader>lh <Plug>(lcn-highlight)
+
+        autocmd BufWritePre * :call LanguageClient#textDocument_formatting_sync()
     endif
 endfunction
 
 autocmd FileType * call LC_maps()
-autocmd BufWritePre * :call LanguageClient#textDocument_formatting_sync()
 
 imap <C-k> <Plug>(neosnippet_expand_or_jump)
 smap <C-k> <Plug>(neosnippet_expand_or_jump)