118 noremap <silent> <leader>a :call vimrc#AutoFmtToggle()<CR> |
118 noremap <silent> <leader>a :call vimrc#AutoFmtToggle()<CR> |
119 |
119 |
120 " Maps that only apply when an LSP is available |
120 " Maps that only apply when an LSP is available |
121 func! s:on_lsp_buffer_enabled() abort |
121 func! s:on_lsp_buffer_enabled() abort |
122 setl omnifunc=lsp#complete |
122 setl omnifunc=lsp#complete |
123 nmap <buffer> <F9> <plug>(lsp-hover) |
123 nmap <buffer> K <plug>(lsp-hover) |
124 nmap <buffer> gd <plug>(lsp-definition) |
124 nmap <buffer> gd <plug>(lsp-definition) |
125 nmap <buffer> gr <plug>(lsp-references) |
125 nmap <buffer> gr <plug>(lsp-references) |
126 nmap <buffer> gt <plug>(lsp-peek-type-definition) |
126 nmap <buffer> gt <plug>(lsp-peek-type-definition) |
127 nmap <buffer> ]d <plug>(lsp-next-diagnostic) |
127 nmap <buffer> ]d <plug>(lsp-next-diagnostic) |
128 nmap <buffer> [d <plug>(lsp-previous-diagnostic) |
128 nmap <buffer> [d <plug>(lsp-previous-diagnostic) |