generated from LazyVim/starter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinit.lua
42 lines (36 loc) · 735 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
30
31
32
33
34
35
36
37
38
39
40
41
42
vim.env.RUFF_EXPERIMENTAL_FORMATTER = "1"
if vim.env.VSCODE then
vim.g.vscode = true
end
if vim.loader then
vim.loader.enable()
end
_G.dd = function(...)
require("util.debug").dump(...)
end
_G.bt = function(...)
require("util.debug").bt(...)
end
vim.print = _G.dd
if vim.env.PROF then
vim.opt.rtp:append("/home/amaanq/projects/snacks.nvim/")
require("snacks.profiler").startup({
startup = {
event = "UIEnter",
},
runtime = "~/projects/neovim/runtime",
})
end
require("config.lazy").load({
debug = false,
profiling = {
loader = false,
require = false,
},
})
vim.api.nvim_create_autocmd("User", {
pattern = "VeryLazy",
callback = function()
require("util").version()
end,
})