From a98d1a57e28b7b1f020b0bcd359200fc87c01971 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 11 Oct 2023 10:20:08 +0200 Subject: [PATCH] Allow custom text width --- init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.vim b/init.vim index 4c72208..0ed9079 100644 --- a/init.vim +++ b/init.vim @@ -47,6 +47,9 @@ set tabstop=4 set shiftwidth=4 set autoindent set tw=120 +if !empty($NVIM_TEXT_WIDTH) + execute 'set tw=' . $NVIM_TEXT_WIDTH +endif " }}} " UI CONFIG #########################################################{{{