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'
|
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_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(
|
vim.api.nvim_create_autocmd(
|
||||||
{ 'BufWritePost' },
|
{ 'BufWritePost' },
|
||||||
{
|
{
|
||||||
|
@ -29,7 +21,7 @@ vim.api.nvim_create_autocmd(
|
||||||
-- exclude plugins.lua, because that would re-init packer
|
-- exclude plugins.lua, because that would re-init packer
|
||||||
if (not vim.api.nvim_buf_get_name(0):match('plugins.lua$')) then
|
if (not vim.api.nvim_buf_get_name(0):match('plugins.lua$')) then
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
echo 'reloading config file…'
|
echom 'reloading config file…'
|
||||||
source <afile>
|
source <afile>
|
||||||
PackerCompile
|
PackerCompile
|
||||||
redraw
|
redraw
|
||||||
|
|
Loading…
Reference in New Issue
Block a user