mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 21:00:38 +00:00
78ddf8d624
if will be called multiple times if present in lazy_load.lua which is totallly unnecessary why even from there ? Yes, this does not affect the --startuptime
25 lines
653 B
Lua
25 lines
653 B
Lua
vim.defer_fn(function()
|
|
pcall(require, "impatient")
|
|
end, 0)
|
|
|
|
require "core"
|
|
require "core.options"
|
|
|
|
require("core.utils").load_mappings()
|
|
|
|
-- setup packer + plugins
|
|
local fn = vim.fn
|
|
local install_path = fn.stdpath "data" .. "/site/pack/packer/opt/packer.nvim"
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#1e222a" })
|
|
print "Cloning packer .."
|
|
fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
|
|
|
|
-- install plugins + compile their configs
|
|
vim.cmd "packadd packer.nvim"
|
|
require "plugins"
|
|
vim.cmd "PackerSync"
|
|
end
|
|
|
|
pcall(require, "custom")
|