1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 14:59:10 +08:00

Ignore E790 on formating (#4148)

This commit is contained in:
Goran Mekić 2021-03-30 17:30:53 +02:00 committed by GitHub
parent 48a6e4b946
commit ae48e9e6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,6 @@ endfunction
function! s:format() abort
if !empty(&ft) &&
\ ( index(s:format_ft, &ft) !=# -1 || s:format_on_save ==# 1)
undojoin | Neoformat
try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry
endif
endfunction