Use full option names instead of abreviations

This commit is contained in:
Caleb Maclennan
2019-11-15 11:02:32 +03:00
parent dae22f99b5
commit 8848dedb70
2 changed files with 8 additions and 8 deletions

View File

@@ -65,8 +65,8 @@ fun! s:maybe_enable_autoformat() abort
return
en
let l:ft = get(g:pencil#autoformat_aliases, &ft, &ft)
let l:af_cfg = get(g:pencil#autoformat_config, l:ft, {})
let l:filetype = get(g:pencil#autoformat_aliases, &filetype, &filetype)
let l:af_cfg = get(g:pencil#autoformat_config, l:filetype, {})
let l:black = get(l:af_cfg, 'black', [])
let l:white = get(l:af_cfg, 'white', [])
let l:has_black_re = len(l:black) > 0