|
|
@ -158,12 +158,16 @@ nnoremap <leader>7 7gt |
|
|
|
nnoremap <leader>8 8gt |
|
|
|
nnoremap <leader>9 9gt |
|
|
|
|
|
|
|
nnoremap <leader>c :tabclose<CR> |
|
|
|
|
|
|
|
nnoremap <leader>b :wprev<CR> |
|
|
|
nnoremap <leader>n :wnext<CR> |
|
|
|
|
|
|
|
nnoremap <C-n> :Lexplore<CR> |
|
|
|
|
|
|
|
" netrw |
|
|
|
nnoremap <C-n> :20Lexplore<CR> |
|
|
|
nnoremap <leader>pv :Explore<CR> |
|
|
|
au FileType netrw nmap <buffer> <CR> t |
|
|
|
|
|
|
|
|
|
|
|
" Plugin options must go at the bottom of the file. |
|
|
|
" install plugins |
|
|
@ -216,8 +220,7 @@ function! s:on_lsp_buffer_enabled() abort |
|
|
|
nmap <buffer> [g <plug>(lsp-previous-diagnostic) |
|
|
|
nmap <buffer> ]g <plug>(lsp-next-diagnostic) |
|
|
|
nmap <buffer> K <plug>(lsp-hover) |
|
|
|
nnoremap <buffer> <expr><c-f> lsp#scroll(+4) |
|
|
|
nnoremap <buffer> <expr><c-d> lsp#scroll(-4) |
|
|
|
nnoremap <leader>ft :LspDocumentFormatSync<CR> |
|
|
|
|
|
|
|
let g:lsp_format_sync_timeout = 1000 |
|
|
|
autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') |
|
|
|