From 61b3690fdc1f406c8bca23b0ac0c56106dc04bfa Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 17 Apr 2023 22:26:39 +0800 Subject: Remove fold config of vim-lsp The performance is terrible ... --- .vim/after/plugin/lsp.vim | 4 ---- 1 file changed, 4 deletions(-) (limited to '.vim/after/plugin/lsp.vim') diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 702be8f..cbc5b15 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -86,10 +86,6 @@ function! s:on_lsp_buffer_enabled() abort nmap rn (lsp-rename) nmap K (lsp-hover) - setlocal foldmethod=expr - \ foldexpr=lsp#ui#vim#folding#foldexpr() - \ foldtext=lsp#ui#vim#folding#foldtext() - let g:lsp_format_sync_timeout = 1000 autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') endfunction -- cgit v1.2.3