Support setting settings with g:ale_pattern_options

This commit is contained in:
w0rp
2017-07-09 00:10:28 +01:00
parent 1b55e5edab
commit ab47011ef2
2 changed files with 10 additions and 2 deletions

View File

@@ -13,6 +13,10 @@ function! ale#pattern_options#SetOptions() abort
endfor
for l:key in keys(l:options)
let b:[l:key] = l:options[l:key]
if l:key[:0] ==# '&'
call setbufvar(bufnr(''), l:key, l:options[l:key])
else
let b:[l:key] = l:options[l:key]
endif
endfor
endfunction