|
|
|
@ -2,7 +2,7 @@ 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 TextYankPost * silent!lua require('vim.highlight').on_yank({higroup = 'Visual', timeout = 200})
|
|
|
|
|
autocmd BufWinEnter * :set formatoptions-=cro
|
|
|
|
|
autocmd FileType qf set nobuflisted
|
|
|
|
|
augroup end
|
|
|
|
@ -28,6 +28,10 @@ vim.cmd [[
|
|
|
|
|
autocmd!
|
|
|
|
|
autocmd User AlphaReady set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2
|
|
|
|
|
augroup end
|
|
|
|
|
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
-- Autoformat
|
|
|
|
|
-- augroup _lsp
|
|
|
|
|
-- autocmd!
|
|
|
|
|
-- autocmd BufWritePre * lua vim.lsp.buf.formatting()
|
|
|
|
|
-- augroup end
|
|
|
|
|