From 95b5fe29a444b3bdd93ff597c4227770c8fa9b9a Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Aug 2022 20:00:17 +0200 Subject: [PATCH] nvim: install new plugins if they appear in nvim's lua directory --- .config/nvim/lua/plugins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index db98a6d..b5c1687 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -20,12 +20,12 @@ use { } use 'https://github.com/L3MON4D3/LuaSnip' --- compile and install new plugins when this file is saved +-- compile and install new plugins when this is save in this dir are written vim.cmd([[ augroup packer_user_config autocmd! autocmd User PackerComplete PackerCompile - autocmd BufWritePost plugins.lua source | PackerInstall + autocmd BufWritePost nvim/lua/*.lua source | PackerInstall augroup end ]])