blob: a3b76bb24bafb0e8e05bf2c77098f84a0f002d06 (
plain)
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
|
local home = vim.env.HOME
local config = home .. '/.config/nvim'
local root = vim.env.USER == 'root'
local vi = vim.v.progname == 'vi'
--------------------------------------------------------------------------
-- plugins
local packages = string.gmatch(vim.fn.glob(config .. "/pack/vendor/opt/*"), "[^\n]+")
local packadd = function(name) vim.cmd("packadd " .. name) end
local packtouch = function(name) vim.cmd("packadd! " .. name) end
for package in packages do
local basename, _ = package:gsub("(.*/)(.*)", "%2")
if vim.v.vim_did_enter == 1 then
packadd(basename)
else
packtouch(basename)
end
end
packadd("termdebug")
--------------------------------------------------------------------------
-- commands
vim.cmd('filetype indent plugin on')
--------------------------------------------------------------------------
-- includes
require("settings")
require("theme")
require("function")
require("keybind")
require("code")
|