neovim-confs/init.lua

39 lines
1.1 KiB
Lua
Raw Normal View History

vim.defer_fn(function()
pcall(require, "impatient")
end, 0)
require "core"
require "core.options"
2022-05-31 21:19:23 +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 }
2022-11-17 18:02:57 +01:00
os.execute("mkdir -p " .. vim.fn.stdpath "data" .. "/site/pack/base46_cache/start/compiled_themes/lua/base46_cache/")
2022-11-17 17:02:55 +01:00
2022-11-17 14:56:43 +01:00
require("base46").compile()
2022-08-06 05:58:05 +02:00
-- install plugins + compile their configs
vim.cmd "packadd packer.nvim"
require "plugins"
vim.cmd "PackerSync"
-- install binaries from mason.nvim & tsparsers
vim.api.nvim_create_autocmd("User", {
pattern = "PackerComplete",
callback = function()
vim.cmd "bw | silent! MasonInstallAll" -- close packer window
require("packer").loader "nvim-treesitter"
end,
})
2022-08-06 05:58:05 +02:00
end
pcall(require, "custom")
require("core.utils").load_mappings()