-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
39 lines (31 loc) · 990 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
31
32
33
34
35
36
37
38
39
vim.cmd [[
set packpath-=~/.config/nvim
set packpath-=~/.config/nvim/after
set packpath-=~/.local/share/nvim/site
set packpath^=~/.local/share/pennyvim/site
set packpath^=~/.config/pvim
set packpath^=~/.config/pvim/after
set runtimepath-=~/.config/nvim
set runtimepath-=~/.config/nvim/after
set runtimepath+=~/.config/pvim
set runtimepath^=~/.local/share/pennyvim/pvim/after
]]
require "config"
require "settings"
require "user-config"
for k, v in pairs(pvim.custom_settings) do
vim.opt[k] = v
end
require "keymaps"
require "autocommands"
require "commands"
require "variables"
local plugins = require "plugins"
local plugin_loader = require("plugin-loader").init()
plugin_loader:load { plugins, pvim.custom_plugins }
local colorschemes = vim.api.nvim_exec("echo getcompletion('', 'color')", true)
if string.find(colorschemes, pvim.colorscheme) then
vim.g.colors_name = pvim.colorscheme
vim.cmd("colorscheme " .. pvim.colorscheme)
end
require "extensions"