diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-05 23:53:35 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-05 23:53:35 +0200 |
| commit | 74c1c0ec047bfa4fc34e24d53577415a4743fa43 (patch) | |
| tree | 7a7d803f65f5c17141ebc77156b52d686aead8e7 /lua | |
| parent | 7442ba93b0f2b4b096681740d03ae24fb1298121 (diff) | |
| download | dotfiles-74c1c0ec047bfa4fc34e24d53577415a4743fa43.tar.gz dotfiles-74c1c0ec047bfa4fc34e24d53577415a4743fa43.zip | |
New autocmd to stop annoying commenting on new lines
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/user/opts.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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 @ :<C-U>execute "noautocmd '<,'>norm! " . v:count1 . "@" . getcharstr()<cr> ]]) +-- 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 |
