vimrc: add augroup for lsp format sync
This commit is contained in:
parent
a2c0d7247c
commit
c91bc341ca
@ -777,7 +777,10 @@ function! s:on_lsp_buffer_enabled() abort
|
||||
|
||||
" let g:lsp_format_sync_timeout = 1000
|
||||
let g:lsp_format_sync_timeout = 700
|
||||
augroup lsp_format_sync
|
||||
autocmd!
|
||||
autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync')
|
||||
augroup END
|
||||
|
||||
" refer to doc to add more commands
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user