From 1ba3fdc3dfb5b840c5eb58123513b778e7ae5de4 Mon Sep 17 00:00:00 2001 From: EdenEast Date: Mon, 18 Mar 2024 11:33:03 -0400 Subject: [PATCH] feat(nvim): add local bootstrap autocmd --- config/.config/nvim/lua/eden/core/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/.config/nvim/lua/eden/core/init.lua b/config/.config/nvim/lua/eden/core/init.lua index d648f5e1..79ff8c4c 100644 --- a/config/.config/nvim/lua/eden/core/init.lua +++ b/config/.config/nvim/lua/eden/core/init.lua @@ -18,6 +18,10 @@ _G.bench = function(label, f, iter) print(label, sum / iter / 1000000) end +local path = require("eden.core.path") +local local_path = path.join(path.datahome, "init.lua") +if path.exists(local_path) then dofile(local_path) end + require("eden.core.string") require("eden.core.clipboard") require("eden.core.filetype") @@ -26,5 +30,7 @@ require("eden.core.options") require("eden.core.keymaps") local theme = require("eden.core.theme") theme.init() +vim.cmd.doautoall("User", "EdenLocalPre") require("eden.core.pack") theme.set() +vim.cmd.doautoall("User", "EdenLocalPost")