-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
30 lines (26 loc) · 878 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
-- ~/.config/nvim/init.lua
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
require("config.keymaps")
require("config.options")
require("custom_extensions.uuidv4")
require("custom_extensions.random_hex")
-- Set colorscheme
vim.cmd([[colorscheme tokyonight-night]])
-- Blink cursor
vim.o.guicursor = table.concat({
"n-v-c:block-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100",
"i-ci:ver25-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100",
"r:hor50-Cursor/lCursor-blinkwait100-blinkon100-blinkoff100"
}, ",")
-- Save shutdown time
vim.api.nvim_create_autocmd("VimLeavePre", {
callback = function()
local shutdown_time = os.time()
local file = io.open(vim.fn.stdpath("data") .. "/last_shutdown.txt", "w")
if file then
file:write(shutdown_time)
file:close()
end
end,
})