-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
29 lines (26 loc) · 858 Bytes
/
Copy pathinit.lua
File metadata and controls
29 lines (26 loc) · 858 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
vim.g.mapleader = " "
vim.g.maplocalleader = " "
require("config")
require("lazyload")
-- Colorscheme: loaded eagerly (must be applied before VimEnter, not deferred)
vim.pack.add({
{ src = "https://github.com/AlessandroYorba/Alduin" },
{ src = "https://github.com/mitander/flume.nvim" },
{ src = "https://github.com/arnauKL/south.nvim" },
{ src = "https://github.com/AlexvZyl/nordic.nvim" },
})
vim.cmd.colorscheme("nordic")
-- Check for plugin updates once per day
vim.schedule(function()
local marker = vim.fn.stdpath("data") .. "/last_plugin_update"
local today = os.date("%Y-%m-%d")
local last = ""
pcall(function()
last = vim.fn.readfile(marker)[1] or ""
end)
if last ~= today then
vim.notify("Checking plugin updates...", vim.log.levels.INFO)
vim.pack.update(nil, { confirm = false })
vim.fn.writefile({ today }, marker)
end
end)