From 74c1c0ec047bfa4fc34e24d53577415a4743fa43 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 5 Feb 2023 23:53:35 +0200 Subject: New autocmd to stop annoying commenting on new lines --- lua/user/opts.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/user/opts.lua b/lua/user/opts.lua index 90fe0f2..468b7af 100644 --- a/lua/user/opts.lua +++ b/lua/user/opts.lua @@ -23,6 +23,14 @@ vim.cmd([[ xnoremap @ :execute "noautocmd '<,'>norm! " . v:count1 . "@" . getcharstr() ]]) +-- Stop annoying auto commenting on new lines +vim.cmd [[ + augroup annoying + au! + au BufEnter * set fo-=c fo-=r fo-=o + augroup end +]] + -- Environment --vim.opt.shell = "zsh" -- vim.o.updatetime = 250 -- cgit v1.2.3