<commit_before>" LaTeX specific
call g:AleSettings()
setlocal textwidth=999999
setlocal wrap
setlocal linebreak
setlocal showbreak=+--
setlocal number
SCon
map j gj
map k gk

function! s:Compile() 
	AsyncRun rubber --pdf %
endfunction

function! s:CompileClean() 
	AsyncRun rubber --pdf --clean %
endfunction

let b:Compile = function('<SID>Compile')
let b:CompileClean = function('<SID>CompileClean')<commit_msg>Added some settings for tex<commit_after>" LaTeX specific
call g:AleSettings()
setlocal textwidth=999999
setlocal wrap
setlocal linebreak
setlocal showbreak=+--
setlocal number
SCon
ColorColumn(0)
nmap j gj
nmap k gk
nmap I g0i
nmap A g$a
nmap 0 g0
nmap $ g$

packadd completor.vim
let g:completor_tex_omni_trigger =
        \   '\\(?:'
        \  .   '\w*cite\w*(?:\s*\[[^]]*\]){0,2}\s*{[^}]*'
        \  .  '|\w*ref(?:\s*\{[^}]*|range\s*\{[^,}]*(?:}{)?)'
        \  .  '|hyperref\s*\[[^]]*'
        \  .  '|includegraphics\*?(?:\s*\[[^]]*\]){0,2}\s*\{[^}]*'
        \  .  '|(?:include(?:only)?|input)\s*\{[^}]*'
        \  .')'
inoremap <expr> <Tab>   pumvisible()? "\<C-n>"      : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible()? "\<C-p>"      : "\<S-Tab>"
inoremap <expr> <cr>    pumvisible()? "\<C-y>\<cr>" : "\<cr>"

" folding options start
packadd FastFold
setlocal foldmethod=indent
setlocal shiftwidth=2
setlocal foldnestmax=1
" folding options end
"
function! s:Compile() 
	AsyncRun rubber --pdf --inplace %
endfunction

function! s:CompileClean() 
	AsyncRun rubber --pdf --clean --inplace %
endfunction
autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(2, 1)

let b:Compile = function('<SID>Compile')
let b:CompileClean = function('<SID>CompileClean')
{'fraction_non_alphanumeric': 0.19714115544967242, 'fraction_numerical': 0.01429422275163788, 'mean_word_length': 3.869565217391304, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '2330989', 'n_tokens_mistral': 673, 'n_tokens_neox': 628, 'n_words': 145}