-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
32 lines (27 loc) · 729 Bytes
/
init.lua
File metadata and controls
32 lines (27 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
local require_plugins = function()
require("packer").startup(function(use)
use("wbthomason/packer.nvim")
use("ldelossa/nvim-ide")
end)
end
local setup = function()
require("ide").setup({})
end
local bootstrap = function()
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
vim.cmd([[packadd packer.nvim]])
require_plugins()
vim.cmd("PackerSync")
vim.api.nvim_create_autocmd("User", {
pattern = "PackerComplete",
callback = setup
})
end
if fn.empty(fn.glob(install_path)) > 0 then
bootstrap()
else
require_plugins()
setup()
end