dotfiles/modules/common/neovim/lua/packer_init.lua

35 lines
1014 B
Lua
Raw Normal View History

2022-07-09 21:27:04 +00:00
-- Bootstrap the Packer plugin manager
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
2022-07-12 12:36:10 +00:00
PACKER_BOOTSTRAP = fn.system({
2022-07-09 21:27:04 +00:00
"git",
"clone",
"--depth",
"1",
"https://github.com/wbthomason/packer.nvim",
install_path,
})
end
require("packer").startup(function(use)
-- Maintain plugin manager
use("wbthomason/packer.nvim")
-- Include other files initialized by packer
require("packer.speed").packer(use)
require("packer.misc").packer(use)
require("packer.colors").packer(use)
require("packer.visuals").packer(use)
require("packer.lsp").packer(use)
require("packer.completion").packer(use)
require("packer.syntax").packer(use)
require("packer.telescope").packer(use)
2022-07-13 12:53:51 +00:00
require("packer.toggleterm").packer(use)
2022-07-09 21:27:04 +00:00
-- Auto-install after bootstrapping
2022-07-12 12:36:10 +00:00
if PACKER_BOOTSTRAP then
2022-07-09 21:27:04 +00:00
require("packer").sync()
end
end)