summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/config/autocommands.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/config/autocommands.lua b/lua/config/autocommands.lua
index e1548e5..ef144d9 100644
--- a/lua/config/autocommands.lua
+++ b/lua/config/autocommands.lua
@@ -8,20 +8,24 @@ vim.cmd [[
autocmd BufWinEnter * :set formatoptions-=cro
autocmd FileType qf set nobuflisted
augroup end
+
augroup _git
autocmd!
autocmd FileType gitcommit setlocal wrap
autocmd FileType gitcommit setlocal spell
augroup end
+
augroup _markdown
autocmd!
autocmd FileType markdown setlocal wrap
autocmd FileType markdown setlocal spell
augroup end
+
augroup _auto_resize
autocmd!
autocmd VimResized * tabdo wincmd =
augroup end
+
augroup _alpha
autocmd!
autocmd User AlphaReady set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2