From fef2c0df450b33fd680f8ba7c824be7c843dcd82 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 10 Apr 2022 19:34:44 +0200 Subject: refactor(bootstrap): add bootstrap --- lua/config/packer.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lua/config/packer.lua (limited to 'lua/config') 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 | 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 -- cgit v1.2.3-70-g09d2