-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
118 lines (102 loc) · 2.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
vim.cmd([[packadd packer.nvim]])
local home_path = os.getenv("HOME")
package.path = package.path .. ";" .. home_path .. "/.config/nvim/?.lua"
-- 一般性快捷键
require("config").basic()
local packer = require("packer")
packer.init({
package_root = "~/.config/nvim/pack/",
git = {
depth = 1,
},
clone_timeout = 120,
})
packer.startup(function()
use("wbthomason/packer.nvim")
use({
"ellisonleao/gruvbox.nvim",
config = function()
require("config").colortheme()
end,
})
use({
"preservim/nerdtree",
config = function()
require("config").nerdtree()
require("keymap").nerdtree()
end,
})
use({
"sbdchd/neoformat",
config = function()
require("keymap").neoformat()
end,
--run = "python3 -m pip install cmakelang",
})
use({
"Yggdroot/LeaderF",
config = function()
require("config").leaderf()
require("keymap").leaderf()
end,
run = ":LeaderfInstallCExtension",
tag = "v1.23",
})
use({
"nvim-treesitter/nvim-treesitter",
config = function()
require("config").treesitter()
end,
run = "TSUpdate",
})
use({
"neoclide/coc.nvim",
config = function()
require("coc-config")
end,
tag = "v0.0.82",
})
use({
"vimwiki/vimwiki",
config = function()
require("config").wiki()
end,
})
use({
"nathom/filetype.nvim",
config = function()
require("config").filetype()
end,
})
use({
"scrooloose/nerdcommenter",
config = function()
require("keymap").nerdcommenter()
end,
})
use({
"dyng/ctrlsf.vim",
config = function()
require("keymap").ctrlsf()
end,
})
use({
"majutsushi/tagbar",
config = function()
require("keymap").tagbar()
end,
})
--use 'Exafunction/codeium.vim'
use 'github/copilot.vim'
use("easymotion/vim-easymotion")
use("mg979/vim-visual-multi")
use({
"nvim-lualine/lualine.nvim",
config = function()
require("config").lualine()
end,
})
--use({ "vladdoster/remember.nvim", config = [[ require('remember') ]] })
--use("rking/ag.vim")
--use("Yggdroot/indentLine")
end)