Skip to content

Commit

Permalink
feat(nvim): add local bootstrap autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenEast committed Mar 18, 2024
1 parent d9b5396 commit 1ba3fdc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/.config/nvim/lua/eden/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")

0 comments on commit 1ba3fdc

Please sign in to comment.