From db5cedc818afe03c083129d34e8c1b8627d37c5e Mon Sep 17 00:00:00 2001 From: ChristianChiarulli Date: Thu, 16 Dec 2021 07:44:11 -0500 Subject: [PATCH] update autocommands --- lua/user/autocommands.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/user/autocommands.lua b/lua/user/autocommands.lua index 549f510..c438738 100644 --- a/lua/user/autocommands.lua +++ b/lua/user/autocommands.lua @@ -2,7 +2,7 @@ vim.cmd [[ augroup _general_settings autocmd! autocmd FileType qf,help,man,lspinfo nnoremap q :close - 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 set showtabline=2 augroup end - ]] +-- Autoformat +-- augroup _lsp +-- autocmd! +-- autocmd BufWritePre * lua vim.lsp.buf.formatting() +-- augroup end