-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
44 lines (38 loc) · 862 Bytes
/
Copy pathinit.lua
File metadata and controls
44 lines (38 loc) · 862 Bytes
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
43
44
if vim.env.VSCODE then
vim.g.vscode = true
end
if vim.loader then
vim.loader.enable()
end
_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
if vim.env.PROF then
-- vim.opt.rtp:append("/home/folke/projects/snacks.nvim/")
require("snacks.profiler").startup({
startup = {
-- event = "UIEnter",
-- event = "VeryLazy",
},
-- runtime = "~/projects/neovim/runtime",
})
end
pcall(require, "config.env")
-- Load dvorak integration early so user can toggle before lazy keys are set
pcall(function()
require("config.dvorak").setup({ enabled = true })
end)
require("config.lazy").load({
-- debug = false,
profiling = {
loader = false,
require = true,
},
})