feat(nvim): automatically re-compile packer

Automatically re-source the `packer.lua` file if it changes, as well as
automatically running `PackerCompile` to updated the compiled version.
This commit is contained in:
Oliver Davies 2021-11-17 18:31:08 +00:00
parent 3faee1f7fc
commit 4eb19130a9

View file

@ -1,6 +1,9 @@
local function set_autocmd()
vim.cmd[[
autocmd BufRead,BufNewFile *.test set filetype=php
autocmd BufWritePost packer.lua luafile %<CR>PackerCompile
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
autocmd FileType gitcommit setlocal colorcolumn=50,72
autocmd FileType gitcommit setlocal spell