diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 3f4f9338..b00ec453 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -4,6 +4,7 @@ " Remapping of linter problems. let g:ale_type_map = get(g:, 'ale_type_map', {}) +let g:ale_filename_mappings = get(g:, 'ale_filename_mappings', {}) if !has_key(s:, 'executable_cache_map') let s:executable_cache_map = {} diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index a53f8626..3ad0a433 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -1,8 +1,8 @@ " Author: w0rp " Description: Functions for fixing code with programs, or other means. -call ale#Set('fix_on_save_ignore', {}) -call ale#Set('filename_mappings', {}) +let g:ale_fix_on_save_ignore = get(g:, 'ale_fix_on_save_ignore', {}) +let g:ale_filename_mappings = get(g:, 'ale_filename_mappings', {}) " Apply fixes queued up for buffers which may be hidden. " Vim doesn't let you modify hidden buffers.