aboutsummaryrefslogtreecommitdiff
path: root/nvim/nvchad/init.lua
diff options
context:
space:
mode:
authorBlaster4385 <TheTablaster@aospa.co>2024-02-15 00:37:46 +0530
committerBlaster4385 <blaster4385@tablaster.dev>2024-02-26 00:30:39 +0530
commitcead788a4a8e67f776d82c4ad50f6d065609c1cf (patch)
tree35fe47589914bdf04f3ecd86c86800ced4068703 /nvim/nvchad/init.lua
Initial dotfiles
Diffstat (limited to 'nvim/nvchad/init.lua')
-rw-r--r--nvim/nvchad/init.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/nvim/nvchad/init.lua b/nvim/nvchad/init.lua
new file mode 100644
index 0000000..21f0b6f
--- /dev/null
+++ b/nvim/nvchad/init.lua
@@ -0,0 +1,21 @@
+require "core"
+
+local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1]
+
+if custom_init_path then
+ dofile(custom_init_path)
+end
+
+require("core.utils").load_mappings()
+
+local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
+
+-- bootstrap lazy.nvim!
+if not vim.loop.fs_stat(lazypath) then
+ require("core.bootstrap").gen_chadrc_template()
+ require("core.bootstrap").lazy(lazypath)
+end
+
+dofile(vim.g.base46_cache .. "defaults")
+vim.opt.rtp:prepend(lazypath)
+require "plugins"