Compare commits
8 Commits
master
...
22-autocom
Author | SHA1 | Date |
---|---|---|
Christian Chiarulli | 24e1856862 | 3 years ago |
Rohan Ghige | 219abb0e68 | 3 years ago |
Rohan Ghige | 0dbe9df716 | 3 years ago |
Rohan Ghige | 6755f98df9 | 3 years ago |
Rohan Ghige | 23c927e16d | 3 years ago |
Rohan Ghige | a7e69fca89 | 3 years ago |
christianchiarulli | 83357089dd | 3 years ago |
christianchiarulli | 6e30af8ab7 | 3 years ago |
@ -0,0 +1,34 @@
|
||||
-- autocmd! remove all autocommands, if entered under a group it will clear that group
|
||||
vim.cmd [[
|
||||
augroup _general_settings
|
||||
autocmd!
|
||||
autocmd FileType qf,help,man,lspinfo nnoremap <silent> <buffer> q :close<CR>
|
||||
autocmd TextYankPost * silent!lua require('vim.highlight').on_yank({higroup = 'Search', timeout = 200})
|
||||
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
|
||||
augroup end
|
||||
|
||||
]]
|
||||
|
Loading…
Reference in new issue