diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-02-06 19:43:26 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-02-06 19:43:26 +0100 |
commit | 1261093f90ce598e58ebd2c0dc40e1cf9de7cdd5 (patch) | |
tree | cc0923fae5dbb1cbb3450791bb06be93fe242b92 | |
parent | b1afab6304f51c2fb4e50b6b3d9aa30562eb89d6 (diff) |
chore: format autocommands
-rw-r--r-- | lua/config/autocommands.lua | 4 |
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 |