-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
28 lines (23 loc) · 827 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
-- set up debugging shortcuts before anything else
-- https://github.com/folke/snacks.nvim/blob/main/docs/debug.md
--Show a notification with a pretty printed dump of the object(s) with lua treesitter highlighting
_G.dd = function(...)
Snacks.debug.inspect(...)
end
--Show a notification with a pretty backtrace
_G.bt = function()
Snacks.debug.backtrace()
end
--Override Neovim's vim.print with Snacks.debug.inspect
vim.print = _G.dd
-- This is a dirty hack but it works when using page so...
-- https://github.com/olimorris/persisted.nvim/pull/76#issuecomment-2294914746
-- https://github.com/I60R/page/issues/39#issuecomment-1447660752
_G.USING_PAGE = vim.tbl_contains(vim.v.argv, "--listen")
require("user.config")
require("lazy").setup("user.plugins", {
defaults = {
lazy = true,
},
concurrency = 50,
})