<commit_before>if exists("b:nim_loaded")
  finish
endif

let b:nim_loaded = 1

let s:cpo_save = &cpo
set cpo&vim

call nim#init()

setlocal formatoptions-=t formatoptions+=croql
setlocal comments=:##,:#
setlocal commentstring=#\ %s
setlocal omnifunc=NimComplete
setlocal suffixesadd=.nim 
setlocal expandtab  "Make sure that only spaces are used

setl tabstop=2
setl softtabstop=2
setl shiftwidth=2

compiler nim

let &cpo = s:cpo_save
unlet s:cpo_save
<commit_msg>Enable folding<commit_after>if exists("b:nim_loaded")
  finish
endif

let b:nim_loaded = 1

let s:cpo_save = &cpo
set cpo&vim

call nim#init()

setlocal formatoptions-=t formatoptions+=croql
setlocal comments=:##,:#
setlocal commentstring=#\ %s
setlocal omnifunc=NimComplete
setlocal suffixesadd=.nim 
setlocal expandtab  "Make sure that only spaces are used
setlocal foldmethod=indent
setlocal foldlevel=99 " Don't fold newly opened buffers by default

setl tabstop=2
setl softtabstop=2
setl shiftwidth=2

compiler nim

let &cpo = s:cpo_save
unlet s:cpo_save

{'fraction_non_alphanumeric': 0.08780487804878048, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 6.125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1726794', 'n_tokens_mistral': 390, 'n_tokens_neox': 376, 'n_words': 108}