mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-30 11:39:08 +00:00
35 lines
1014 B
Lua
35 lines
1014 B
Lua
-- 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
|
|
PACKER_BOOTSTRAP = fn.system({
|
|
"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)
|
|
require("packer.toggleterm").packer(use)
|
|
|
|
-- Auto-install after bootstrapping
|
|
if PACKER_BOOTSTRAP then
|
|
require("packer").sync()
|
|
end
|
|
end)
|