summaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorChris <[email protected]>2021-06-30 22:32:35 -0400
committerChris <[email protected]>2021-06-30 22:32:35 -0400
commit1334df246cd71473f34f4f8dd9518b795e468b29 (patch)
tree29803ac327c466ac07854a3f39fa8694355a1a72 /lua/plugins.lua
parente541ef54820ef2cb25cd1330f7afd2e1787750e4 (diff)
updates
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 60752ac5..683fd263 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -9,6 +9,23 @@ if fn.empty(fn.glob(install_path)) > 0 then
execute "packadd packer.nvim"
end
+local packer_ok, packer = pcall(require, "packer")
+if not packer_ok then
+ return
+end
+
+packer.init {
+ -- compile_path = vim.fn.stdpath('data')..'/site/pack/loader/start/packer.nvim/plugin/packer_compiled.vim',
+ git = {
+ clone_timeout = 300
+ },
+ display = {
+ open_fn = function()
+ return require("packer.util").float { border = "single" }
+ end,
+ },
+}
+
vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua
return require("packer").startup(function(use)