-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.lua
More file actions
35 lines (30 loc) · 1.38 KB
/
init.lua
File metadata and controls
35 lines (30 loc) · 1.38 KB
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
------------------------------------------------------------------------------
-- Entry point
------------------------------------------------------------------------------
-- Set leader/localleader keymaps
-- Make sure to setup `mapleader` and `maplocalleader` before loading
-- lazy.nvim so that mappings are correct
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
------------------------------------------------------------------------------
-- lazy.nvim plugin manager
require("config.lazy")
------------------------------------------------------------------------------
-- Core functionality
require("core")
------------------------------------------------------------------------------
-- Set color scheme to light between 8:00 AM and 5:00 PM, dark otherwise
-- Color scheme plugins are loaded from `lua/plugins/colorschemes.lua`
-- For defaults, see `lua/core/state.lua`
local ui = require("core.ui")
ui.set_auto_scheme({
light_scheme_name = "vscode", -- default light color scheme
dark_scheme_name = "kanagawa", -- default dark color scheme
light_scheme_starts_at = { hour = 08, min = 00 }, -- 24h format
light_scheme_ends_at = { hour = 17, min = 00 }, -- 24h format
})
------------------------------------------------------------------------------
-- Neovide initialization and configuration, executed only by Neovide sessions
if vim.g.neovide then
pcall(require, "neovide")
end