From 47660d5fb6b3b5a0cc5b4ff620c7d44799a28874 Mon Sep 17 00:00:00 2001 From: Juni Kim Date: Fri, 10 Feb 2023 20:59:29 -0500 Subject: [PATCH] netrw reconfiguration --- lsp.vimrc | 11 +++++++---- minimal.vimrc | 6 ++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lsp.vimrc b/lsp.vimrc index ebe1bad..1516db1 100644 --- a/lsp.vimrc +++ b/lsp.vimrc @@ -158,12 +158,16 @@ nnoremap 7 7gt nnoremap 8 8gt nnoremap 9 9gt +nnoremap c :tabclose + nnoremap b :wprev nnoremap n :wnext -nnoremap :Lexplore - +" netrw +nnoremap :20Lexplore nnoremap pv :Explore +au FileType netrw nmap 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 [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap K (lsp-hover) - nnoremap lsp#scroll(+4) - nnoremap lsp#scroll(-4) + nnoremap ft :LspDocumentFormatSync let g:lsp_format_sync_timeout = 1000 autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') diff --git a/minimal.vimrc b/minimal.vimrc index 999e731..823a3e7 100644 --- a/minimal.vimrc +++ b/minimal.vimrc @@ -1,3 +1,4 @@ +"vim:ft=vim filetype plugin indent on filetype on syntax on @@ -150,9 +151,10 @@ nnoremap 9 9gt nnoremap b :wprev nnoremap n :wnext -nnoremap :Lexplore - +"netrw +nnoremap :20Lexplore nnoremap pv :Explore +au FileType netrw nmap t " Plugin options must go at the bottom of the file. " install plugins