vimrc(lsp): autoformat nix
This commit is contained in:
parent
11a6beec7e
commit
301bc3ea49
@ -1229,7 +1229,7 @@ function! s:on_lsp_buffer_enabled() abort
|
|||||||
let g:lsp_format_sync_timeout = 700
|
let g:lsp_format_sync_timeout = 700
|
||||||
augroup lsp_format_sync
|
augroup lsp_format_sync
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd! BufWritePre *.rs,*.go,*.python call execute('LspDocumentFormatSync')
|
autocmd! BufWritePre *.rs,*.go,*.python,*.nix call execute('LspDocumentFormatSync')
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" refer to doc to add more commands
|
" refer to doc to add more commands
|
||||||
|
Loading…
Reference in New Issue
Block a user