From 5d18678ab52d77862fec8320d5942a325a8aa394 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 3 Dec 2021 08:14:05 +0000 Subject: [PATCH] fix: automatically compiling packer on save --- nvim/.config/nvim/lua/opdavies/vim.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/opdavies/vim.lua b/nvim/.config/nvim/lua/opdavies/vim.lua index 07ed1f9..1076e3f 100644 --- a/nvim/.config/nvim/lua/opdavies/vim.lua +++ b/nvim/.config/nvim/lua/opdavies/vim.lua @@ -2,7 +2,8 @@ local function set_autocmd() vim.cmd[[ autocmd BufRead,BufNewFile *.test set filetype=php - autocmd BufWritePost packer.lua luafile %PackerCompile + autocmd BufWritePost packer.lua luafile % + autocmd BufWritePost packer.lua PackerCompile autocmd FileType gitcommit highlight ColorColumn ctermbg=8 autocmd FileType gitcommit setlocal colorcolumn=50,72