2022-05-23 09:24:03 +02:00
|
|
|
require "core"
|
|
|
|
require "core.options"
|
2022-05-31 21:19:23 +02:00
|
|
|
|
2022-08-07 04:55:07 +02:00
|
|
|
require("core.utils").load_mappings()
|
2021-11-14 02:19:33 +01:00
|
|
|
|
2022-05-23 09:24:03 +02:00
|
|
|
-- setup packer + plugins
|
2022-08-06 05:58:05 +02:00
|
|
|
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
|
2022-05-23 11:24:59 +02:00
|
|
|
|
2022-06-26 02:54:52 +02:00
|
|
|
pcall(require, "custom")
|