-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
39 lines (31 loc) · 1.09 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
-------------------------------------------------------------------------------
-- Author : Ragu Manjegowda
-- Github : @ragu-manjegowda
-------------------------------------------------------------------------------
-- References
-- https://github.com/zhuorantan/dotfiles
-- https://github.com/LunarVim/LunarVim
-- Load all static (non plugin based) settings
require "user.options"
require "user.keymaps"
require "user.autocommands"
require "user.colorscheme"
require "user.buf-only"
-- other way is to put the above in custom directory and make package of
-- its own vim.opt.rtp:append(vim.fn.stdpath "config" .. "/custom")
-- https://github.com/NvChad/NvChad/issues/605#issuecomment-1001109229
-- Bootstrap packer
local res, bootstrap = pcall(require, "user.bootstrap")
if not res then
vim.notify("Bootstrapping not available", vim.log.levels.ERROR)
return
end
bootstrap.init()
-- Load plugins
local plugins
res, plugins = pcall(require, "user.plugins-table")
if not res then
vim.notify("Plugins table not found", vim.log.levels.ERROR)
return
end
bootstrap.load { plugins }