diff options
author | w0rp <devw0rp@gmail.com> | 2020-08-28 09:33:09 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-08-28 09:33:09 +0100 |
commit | 68741204059d56ffcb4229ec433edf5f9fc4e8c7 (patch) | |
tree | 817966476fefa25dfce14d07095de75624fb209b | |
parent | 36e959a46697afaa674ffa0dd21e026245a71d35 (diff) | |
download | ale-68741204059d56ffcb4229ec433edf5f9fc4e8c7.zip |
Fix #3323 - Set default for g:ale_filename_mappings
-rw-r--r-- | autoload/ale/engine.vim | 1 | ||||
-rw-r--r-- | autoload/ale/fix.vim | 4 |
2 files changed, 3 insertions, 2 deletions
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 <devw0rp@gmail.com> " 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. |