Authentication-Results: mail-b.sr.ht; dkim=pass header.d=smlavine.com header.i=@smlavine.com Received: from mail.smlavine.com (smlavine.com [140.82.41.52]) by mail-b.sr.ht (Postfix) with ESMTPS id EC55211F02E for <~sircmpwn/hare-dev@lists.sr.ht>; Wed, 11 May 2022 15:41:56 +0000 (UTC) Received: from archlinux-x220.fios-router.home (unknown [72.65.17.226]) by mail.smlavine.com (Postfix) with ESMTPSA id 8F9027D63D; Wed, 11 May 2022 15:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=smlavine.com; s=mail; t=1652283716; bh=JzRGOplPvqTzQZZyHVJEZNeLnszC/8J0pBTgZ3Rw69o=; h=From:To:Cc:Subject:Date:From; b=LyGeFrdIywgNUpFpfHiPJywtohCN1LlXqdGzvHzlXodEDLLEMT1SI4AQ7U0G0i9kH o1jKG3vUhBLRndYvfbzjzlxQawqG1NmCyUFS5hGWpgx5/kcTpdlg2yoSvDsuFdllta 0Bk9XCiIGfl3suQ50uK1I2XpeVCJQbB5QJ+dq0KXG0SoyEXeL7YQtLA+djEjiYgtuH o/ZR9wkyvLgX/CEYEn6tIkYS2ds2pMCmwDcT76hsRBelnBUH3ZMotI3Ar25z+RCB48 lX5XVWMnk56l5ZuHickwhD9bd0y5QDn8INaabEXjWD6B/g+ohFPUHpdUvroHt7Y7TW QlLXjZcirHWaA== From: Sebastian LaVine To: ~sircmpwn/hare-dev@lists.sr.ht Cc: Sebastian LaVine Subject: [PATCH hare.vim] Don't highlight hareSpaceError when in inert mode Date: Wed, 11 May 2022 11:41:41 -0400 Message-Id: <20220511154140.127268-1-mail@smlavine.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit It is annoying when typing a line, and every space you type is highlighted red because it is the last character on the line so far. Signed-off-by: Sebastian LaVine --- syntax/hare.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntax/hare.vim b/syntax/hare.vim index ad8cd3a..9c8c210 100644 --- a/syntax/hare.vim +++ b/syntax/hare.vim @@ -74,5 +74,9 @@ hi def link harePreProc PreProc hi def link hareString String hi def link hareTodo Todo hi def link hareType Type + hi def link hareSpaceError Error +autocmd InsertEnter * hi link hareSpaceError NONE +autocmd InsertLeave * hi link hareSpaceError Error + " vim: tabstop=8 shiftwidth=2 expandtab -- 2.36.1