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:
parent
48a6e4b946
commit
ae48e9e6b2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user