Browse Source

netrw reconfiguration

master
Juni Kim 2 years ago
parent
commit
47660d5fb6
  1. 11
      lsp.vimrc
  2. 6
      minimal.vimrc

11
lsp.vimrc

@ -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')

6
minimal.vimrc

@ -1,3 +1,4 @@
"vim:ft=vim
filetype plugin indent on
filetype on
syntax on
@ -150,9 +151,10 @@ nnoremap <leader>9 9gt
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

Loading…
Cancel
Save