[nvim] Only spellcheck in text files

This commit is contained in:
M1dgard 2018-11-04 00:19:22 +01:00
parent da83ac0122
commit f601abf860
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -163,10 +163,13 @@ nnoremap <silent> <leader>ml :call AppendModeline()<CR>
" Spell check {{{2 " Spell check {{{2
" ================ " ================
set spell set spelllang=en_uk,nl
set spelllang=en_us,nl
set spellfile=$HOME/.local/share/nvim/spellfile.utf-8.add set spellfile=$HOME/.local/share/nvim/spellfile.utf-8.add
augroup spellcheck_textfiles
au! BufNewFile,BufRead *.md,*.txt,*.tex setlocal spell
augroup END
" Plug-ins {{{1 " Plug-ins {{{1
" ============= " =============