my-nvim-setup/init.lua
siduck be6d1f995f fix mapleader not mapped properly to general mappings
this happens cuz all mappings are set just after calling  core.options and custom module is called at the end of the init.lua #1475
2022-08-15 19:23:55 +05:30

25 lines
653 B
Lua

vim.defer_fn(function()
pcall(require, "impatient")
end, 0)
require "core"
require "core.options"
-- 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")
require("core.utils").load_mappings()