From f7120df53b7ea6894864f533b8a6372f2eca5659 Mon Sep 17 00:00:00 2001 From: Johannes Knopp Date: Fri, 20 Dec 2024 11:35:56 +0100 Subject: [PATCH] disable autoformatting of text and comments in vim --- nvim/lua/config/core/options.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nvim/lua/config/core/options.lua b/nvim/lua/config/core/options.lua index 7b4afd6..a65ec02 100644 --- a/nvim/lua/config/core/options.lua +++ b/nvim/lua/config/core/options.lua @@ -36,3 +36,9 @@ opt.showbreak = '++' opt.breakindent = true opt.linebreak = true opt.termguicolors = true + +-- Remove autoformatting of +-- 't' text using textwidth +-- 'c' comments using textwidth +opt.formatoptions:remove('t') +opt.formatoptions:remove('c')