From 2dc5110cb5abe5f4f8d0224e743cfeee8dc8316f Mon Sep 17 00:00:00 2001 From: Hasu <57579123+hashue@users.noreply.github.com> Date: Sun, 4 Sep 2022 16:41:24 +0900 Subject: [PATCH] separate conceal check and add error message (#377) --- after/plugin/indentLine.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 27e336c..82c5764 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -5,7 +5,12 @@ scriptencoding utf-8 -if !has("conceal") || exists("g:indentLine_loaded") +if !has("conceal") + echoerr "conceal is invalid. To use the plugin, please enable the conceal" + finish +endif + +if exists("g:indentLine_loaded") finish endif let g:indentLine_loaded = 1