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:
parent
3faee1f7fc
commit
4eb19130a9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue