<commit_before>" =============================================================================
" Airline
" =============================================================================

let g:airline_skip_empty_sections = 1
let g:airline_powerline_fonts     = 1
let g:airline_enable_fugitive     = 1
let g:airline_left_sep            = ""
let g:airline_right_sep           = ""
let g:airline_section_y           = ""
let g:airline_section_z           = ""
let g:airline_mode_map            = {
\ '__' : '-',
\ 'n'  : 'N',
\ 'i'  : 'I',
\ 'R'  : 'R',
\ 'c'  : 'C',
\ 'v'  : 'V',
\ 'V'  : 'V',
\ '' : 'V',
\ 's'  : 'S',
\ 'S'  : 'S'
\ }

let g:airline#extensions#default#layout = [
  \['a', 'c'],
  \['b', 'error', 'warning']
  \]

let g:airline#extensions#hunks#non_zero_only = 1

" =============================================================================
" Deoplete
" =============================================================================

let g:deoplete#enable_at_startup    = 1
let g:deoplete#sources#ternjs#types = 1
let g:deoplete#sources#ternjs#docs  = 1

inoremap <expr> <tab> pumvisible() ? "\<c-n>" : "\<tab>"
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif

" =============================================================================
" NeoSnippet
" =============================================================================

imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)

" =============================================================================
" Ale
" =============================================================================

let g:ale_sign_error           = '❌'
let g:ale_sign_warning         = '--'
let g:ale_set_highlights       = 0
let g:ale_lint_on_text_changed = 'never'
let g:ale_lint_on_enter        = 0

highlight link ALEErrorSign LineNr
highlight link ALEWarningSign LineNr

" After this is configured, :ALEFix will try and fix your JS code with ESLint.
let g:ale_fixers = {
\ 'javascript': ['eslint'],
\ 'typescript': ['tslint']
\}

" =============================================================================
" GitGutter
" =============================================================================

nmap <Leader>hn <Plug>GitGutterNextHunk
nmap <Leader>hm <Plug>GitGutterPrevHunk

let g:gitgutter_sign_added              = '•'<commit_msg>nvim: adjust ale signs<commit_after>" =============================================================================
" Airline
" =============================================================================

let g:airline_skip_empty_sections = 1
let g:airline_powerline_fonts     = 1
let g:airline_enable_fugitive     = 1
let g:airline_left_sep            = ""
let g:airline_right_sep           = ""
let g:airline_section_y           = ""
let g:airline_section_z           = ""
let g:airline_mode_map            = {
\ '__' : '-',
\ 'n'  : 'N',
\ 'i'  : 'I',
\ 'R'  : 'R',
\ 'c'  : 'C',
\ 'v'  : 'V',
\ 'V'  : 'V',
\ '' : 'V',
\ 's'  : 'S',
\ 'S'  : 'S'
\ }

let g:airline#extensions#default#layout = [
  \['a', 'c'],
  \['b', 'error', 'warning']
  \]

let g:airline#extensions#hunks#non_zero_only = 1

" =============================================================================
" Deoplete
" =============================================================================

let g:deoplete#enable_at_startup    = 1
let g:deoplete#sources#ternjs#types = 1
let g:deoplete#sources#ternjs#docs  = 1

inoremap <expr> <tab> pumvisible() ? "\<c-n>" : "\<tab>"
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif

" =============================================================================
" NeoSnippet
" =============================================================================

imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)

" =============================================================================
" Ale
" =============================================================================

let g:ale_sign_error           = '❗'
let g:ale_sign_warning         = '❓'
let g:ale_set_highlights       = 0
let g:ale_lint_on_text_changed = 'never'
let g:ale_lint_on_enter        = 0

highlight link ALEErrorSign LineNr
highlight link ALEWarningSign LineNr

" After this is configured, :ALEFix will try and fix your JS code with ESLint.
let g:ale_fixers = {
\ 'javascript': ['eslint'],
\ 'typescript': ['tslint']
\}

" =============================================================================
" GitGutter
" =============================================================================

nmap <Leader>hn <Plug>GitGutterNextHunk
nmap <Leader>hm <Plug>GitGutterPrevHunk

let g:gitgutter_sign_added              = '•'
{'fraction_non_alphanumeric': 0.4279370205894227, 'fraction_numerical': 0.004037141703673799, 'mean_word_length': 5.209273182957394, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '4203965', 'n_tokens_mistral': 1614, 'n_tokens_neox': 1485, 'n_words': 283}