From 69141f78503e8eb55614d113ba79d6911681df6b Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 5 Jul 2023 12:07:30 +0200 Subject: [PATCH] spell syntax regions --- home/.config/nvim/common.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/.config/nvim/common.vim b/home/.config/nvim/common.vim index 27b3bf0..62054d0 100644 --- a/home/.config/nvim/common.vim +++ b/home/.config/nvim/common.vim @@ -112,3 +112,13 @@ nnoremap ZN [S " correct with zc, default is z= but that sucks for qwertz keyboards nnoremap z z= + +" don't make things written as `something` a typo +syntax region cCommentNoSpell start=+`+ end=+`+ + \ contained containedin=cComment,cCommentL transparent + \ contains=@NoSpell + +" don't make lines starting with `//!` a typo (used by rust docs) +syntax region cCommentNoSpell start=+//!+ end='\z1' contained extend + \ contained containedin=cComment,cCommentL transparent + \ contains=@NoSpell