From ab47011ef2cbe1774571a5031034328bbc4e6edd Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 9 Jul 2017 00:10:28 +0100 Subject: Support setting settings with g:ale_pattern_options --- autoload/ale/pattern_options.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/ale/pattern_options.vim b/autoload/ale/pattern_options.vim index a42a39d9..03c9146a 100644 --- a/autoload/ale/pattern_options.vim +++ b/autoload/ale/pattern_options.vim @@ -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 -- cgit v1.2.3