mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-08 20:43:31 +08:00
Support setting settings with g:ale_pattern_options
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user