diff options
Diffstat (limited to 'core/plugins.vim')
| -rw-r--r-- | core/plugins.vim | 18 |
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 |
