-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
22 lines (21 loc) · 728 Bytes
/
Copy pathinit.lua
File metadata and controls
22 lines (21 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Disable mini.trailspace on snacks dashboard.
-- mini.trailspace's deferred matchadd runs before UIEnter (when the dashboard opens),
-- so the match is applied to the window while buf 1 is still normal. The dashboard
-- then reuses that window, inheriting the stale match. Remove it once the dashboard opens.
vim.api.nvim_create_autocmd("User", {
pattern = "SnacksDashboardOpened",
callback = function()
vim.b.minitrailspace_disable = true
if _G.MiniTrailspace then
MiniTrailspace.unhighlight()
end
end,
})
require("config.lazy")
require("config.options")
require("config.keymaps")
require("config.autocmds")
require("config.terminal")
require("config.news")
require("config.dotenv")
require("config.notes-sync")