my-nvim-lua/init.lua

32 lines
877 B
Lua
Raw Normal View History

vim.defer_fn(function()
pcall(require, "impatient")
end, 0)
2022-09-27 19:40:45 +00:00
require "spike.globals"
require "core"
require "core.options"
2022-05-31 19:19:23 +00:00
require("core.utils").load_mappings()
2021-11-14 01:19:33 +00:00
-- setup packer + plugins
2022-08-06 03:58:05 +00:00
local fn = vim.fn
local install_path = fn.stdpath "data" .. "/site/pack/packer/opt/packer.nvim"
2022-08-06 03:58:05 +00:00
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")
2022-11-01 22:10:02 +00:00
2022-11-16 18:33:47 +00:00
local xdg_config = vim.env["XDG_CONFIG_HOME"] or '~/.config'
local vimscriptsfolder = xdg_config .. "/nvim/myvimscript" -- relative to .config/nvim dir
2022-11-01 22:10:02 +00:00
vim.opt.runtimepath:prepend(vimscriptsfolder)