From f601abf8600528ccea6ef80f094ffa3779b72d91 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Sun, 4 Nov 2018 00:19:22 +0100 Subject: [PATCH] [nvim] Only spellcheck in text files --- nvim-init.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nvim-init.vim b/nvim-init.vim index 2810ba1..64c548b 100644 --- a/nvim-init.vim +++ b/nvim-init.vim @@ -163,10 +163,13 @@ nnoremap ml :call AppendModeline() " Spell check {{{2 " ================ -set spell -set spelllang=en_us,nl +set spelllang=en_uk,nl 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 " =============