aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-04-17 22:26:39 +0800
committerGuangxiong Lin <[email protected]>2023-04-17 22:26:39 +0800
commit61b3690fdc1f406c8bca23b0ac0c56106dc04bfa (patch)
tree2243ea75fbc9a483c1cdd22548a19e82fdbeecdd
parent03a12bf925e1d3868cbbb9581f0e45c600219426 (diff)
downloaddotfiles-61b3690fdc1f406c8bca23b0ac0c56106dc04bfa.tar.gz
dotfiles-61b3690fdc1f406c8bca23b0ac0c56106dc04bfa.tar.bz2
dotfiles-61b3690fdc1f406c8bca23b0ac0c56106dc04bfa.zip
Remove fold config of vim-lsp
The performance is terrible ...
-rw-r--r--.vim/after/plugin/lsp.vim4
1 files changed, 0 insertions, 4 deletions
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 <buffer> <leader>rn <plug>(lsp-rename)
nmap <buffer> K <plug>(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