-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
29 lines (23 loc) · 809 Bytes
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- https://github.com/neovim/neovim/pull/24044
vim.loader.enable()
-- stylua: ignore
do
_G.dd = function(...) require("snacks.debug").inspect(...) end
_G.bt = function(...) require("snacks.debug").backtrace(...) end
_G.p = function(...) require("snacks.debug").profile(...) end
vim.print = _G.dd
end
if vim.env.PROF or vim.env.PROFILE or vim.env.NVIM_PROFILE then
local snacks = vim.fs.joinpath(tostring(vim.fn.stdpath("data")), "lazy/snacks.nvim")
vim.opt.runtimepath:append(snacks)
require("snacks.profiler").startup({
startup = {
-- Stop profiler on this event. Defaults to `VimEnter`
event = "User",
pattern = "VeryLazy",
},
})
end
require("config.options")
require("config.globals")
require("config.lazy").setup()