summaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/packer.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/config/packer.lua b/lua/config/packer.lua
new file mode 100644
index 0000000..9302149
--- /dev/null
+++ b/lua/config/packer.lua
@@ -0,0 +1,23 @@
+local status_ok, packer = pcall(require, "packer")
+if not status_ok then
+ return
+end
+
+-- Autocommand that reloads neovim whenever you save the plugins.lua file
+vim.cmd [[
+ augroup packer_user_config
+ autocmd!
+ autocmd BufWritePost plugins.lua source <afile> | PackerSync
+ augroup end
+]]
+
+-- Have packer use a popup window
+packer.init {
+ display = {
+ open_fn = function()
+ return require("packer.util").float { border = "rounded" }
+ end,
+ },
+}
+
+return packer