-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.lua
51 lines (45 loc) · 1.49 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
------------------------------
-- This file is the entry point of a neovim configuration
--
-- In order to load the config with KoalaVim we load:
-- 1. KoalaVim config - keymaps, options, usercmds, autocmds
-- 2. User config - keymaps, options, usercmds, autocmds (Overrides KoalaVim config)
-- 3. lazy.nvim - Loads the plugins
------------------------------
------------------------------
-- Remap space as leader key to set the keymaps with correct leader key
------------------------------
-- TODO: [configure me] set different leader key
local leader_key = ' '
------------------------------
-- Load KoalaVim config
------------------------------
require('koala_init').load_koala(leader_key)
------------------------------
-- Load user config
------------------------------
local require_dir = require('KoalaVim.utils.require_dir')
require_dir.recursive_require('config')
-- Lazy load config/lazy after KoalaVim
vim.api.nvim_create_autocmd('User', {
pattern = 'KoalaVimStarted',
callback = function()
require_dir.recursive_require('config_lazy')
end,
})
------------------------------
-- Load lazy.nvim
------------------------------
require('koala_init').load_lazy({
-- lazy.nvim user spec (combined with KoalaVim spec)
user_spec = {
{ import = 'plugins' },
},
-- lazy.nvim user opts (overrides KoalaVim lazy.nvim opts)
lazy_opts = {
install = {
-- TODO: [configure me] set your colorscheme
colorscheme = { 'ofirkai' }, -- Which colorscheme to let lazy.nvim load first
},
},
})