Fix #3323 - Set default for g:ale_filename_mappings

This commit is contained in:
w0rp 2020-08-28 09:33:09 +01:00
parent 36e959a466
commit 6874120405
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
2 changed files with 3 additions and 2 deletions

View File

@ -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 = {}

View File

@ -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.