<commit_before>" ALE config

let g:ale_sign_error = '🔥'
let g:ale_javascript_eslint_suppress_missing_config = 10
let g:ale_linters = {
\   'javascript': ['eslint', 'flow'],
\   'markdown': [],
\   'python': ['flake8'],
\}

" ALE fix-on-save
let g:ale_fix_on_save = 1

" ALE completion
let g:ale_completion_enabled = 1

<commit_msg>Vim: Turn off ale_fix_on_save by default. Add 'ff' mapping for running ALEFix, 'fs' for toggling ale_fix_on_save.<commit_after>" ALE config

let g:ale_sign_error = '🔥'
let g:ale_javascript_eslint_suppress_missing_config = 10
let g:ale_linters = {
\   'javascript': ['eslint', 'flow'],
\   'markdown': [],
\   'python': ['flake8'],
\}

" ALE fix-on-save
let g:ale_fix_on_save = 0

function! ToggleFixOnSave()
    if (g:ale_fix_on_save == 1)
        let g:ale_fix_on_save=0
    else
        let g:ale_fix_on_save=1
    endif
endfunction

command! -nargs=0 ToggleFixOnSave call ToggleFixOnSave()

nnoremap fs :ToggleFixOnSave<CR>
nnoremap ff :ALEFix<CR>

" ALE completion
let g:ale_completion_enabled = 1


{'fraction_non_alphanumeric': 0.13056092843326886, 'fraction_numerical': 0.013539651837524178, 'mean_word_length': 4.564516129032258, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4780230', 'n_tokens_mistral': 422, 'n_tokens_neox': 412, 'n_words': 92}