aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-11-06 00:35:15 +0800
committerjdhao <jdhao@hotmail.com>2020-11-06 00:35:15 +0800
commit114b3b9e4502cb7f9587d14f7e5df06d3ab938e4 (patch)
tree476d2b34344e6509d4a14db32c5bd560bbe78a15 /core
parent7a5c7c7500129d95eac8fc3c6003b153a2e660fa (diff)
formatting
Diffstat (limited to 'core')
-rw-r--r--core/plugins.vim18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index 3502ff9..52799a1 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -400,15 +400,15 @@ if executable('vim-language-server')
endif
function! s:on_lsp_buffer_enabled() abort
- if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
- nmap <buffer> gd <plug>(lsp-definition)
- nmap <buffer> gr <plug>(lsp-references)
- nmap <buffer> gi <plug>(lsp-implementation)
- nmap <buffer> gt <plug>(lsp-type-definition)
- nmap <buffer> <leader>rn <plug>(lsp-rename)
- nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
- nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
- nmap <buffer> K <plug>(lsp-hover)
+ if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
+ nmap <buffer> gd <plug>(lsp-definition)
+ nmap <buffer> gr <plug>(lsp-references)
+ nmap <buffer> gi <plug>(lsp-implementation)
+ nmap <buffer> gt <plug>(lsp-type-definition)
+ nmap <buffer> <leader>rn <plug>(lsp-rename)
+ nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
+ nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
+ nmap <buffer> K <plug>(lsp-hover)
endfunction
augroup lsp_install