nvim: plugins: clean up
This commit is contained in:
parent
75ca9848dd
commit
c51f8cd8b0
|
@ -10,16 +10,8 @@ packer.init()
|
|||
|
||||
packer.use 'https://github.com/wbthomason/packer.nvim'
|
||||
|
||||
-- source file, install new plugins and compile when config file is written
|
||||
-- source file and compile plugins when config file is written
|
||||
vim.api.nvim_create_augroup('packer_user_config', { clear = true })
|
||||
-- vim.api.nvim_create_autocmd(
|
||||
-- { 'User' },
|
||||
-- {
|
||||
-- group = 'packer_user_config',
|
||||
-- pattern = 'PackerComplete',
|
||||
-- command = [[PackerCompile']]
|
||||
-- }
|
||||
-- )
|
||||
vim.api.nvim_create_autocmd(
|
||||
{ 'BufWritePost' },
|
||||
{
|
||||
|
@ -29,7 +21,7 @@ vim.api.nvim_create_autocmd(
|
|||
-- exclude plugins.lua, because that would re-init packer
|
||||
if (not vim.api.nvim_buf_get_name(0):match('plugins.lua$')) then
|
||||
vim.cmd([[
|
||||
echo 'reloading config file…'
|
||||
echom 'reloading config file…'
|
||||
source <afile>
|
||||
PackerCompile
|
||||
redraw
|
||||
|
|
Loading…
Reference in New Issue
Block a user