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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
git = {
-- defaults for the `Lazy log` command
-- log = { "-10" }, -- show the last 10 commits
log = { "-8" }, -- show commits from the last 3 days
timeout = 120, -- kill processes that take more than 2 minutes
url_format = "https://github.com/%s.git",
-- lazy.nvim requires git >=2.19.0. If you really want to use lazy with an older version,
-- then set the below to false. This should work, but is NOT supported and will
-- increase downloads a lot.
filter = true,
},
"neovim/nvim-lspconfig",
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
-- 借用了vim插件,因为二者是兼容的,速度上vim-latex更快
{
"vim-latex/vim-latex",
lazy = false,
},
-- { "jbyuki/nabla.nvim" },
{ "agate/vim-align" },
-- 添加latex插件vimtex
-- {
-- "lervag/vimtex",
-- lazy = false,
-- },
-- { "mhinz/neovim-remote" },
-- 添加neovim主题
{
"folke/tokyonight.nvim",
"catppuccin/nvim",
},
-- 代码高亮
{ "nvim-treesitter/nvim-treesitter", build =":TSUpdate" },
-- 状态栏主题
{
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons", lazy = true },
},
-- -- nvim-cmp
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer' ,
'hrsh7th/cmp-path' ,
'hrsh7th/cmp-cmdline' ,
'hrsh7th/nvim-cmp',
-- vsnip
'hrsh7th/cmp-vsnip' ,
'hrsh7th/vim-vsnip' ,
'rafamadriz/friendly-snippets' ,
-- lspkind
{ "onsails/lspkind.nvim" },
-- 自动插入模板
{ "aperezdc/vim-template" },
-- 旧式片段插入程序
{ "SirVer/ultisnips" },
{ "honza/vim-snippets" },
{"tpope/vim-speeddating"},
{"tpope/vim-repeat"},
-- 注释插件
{ "terrortylor/nvim-comment" },
{ "nvim-tree/nvim-web-devicons" },
-- 目录树插件
{ "nvim-tree/nvim-tree.lua" },
-- This plugin adds indentation guides to all lines (including empty lines).
-- { "lukas-reineke/indent-blankline.nvim" },
{
"shellRaining/hlchunk.nvim",
event = { "BufReadPre", "BufNewFile" }
},
-- 彩虹括号
{ "hiphish/rainbow-delimiters.nvim" },
-- 用来显示文件结构的插件,对于编写程序查看各定义时很有帮助
{ "liuchengxu/vista.vim" },
-- 模糊查找
{
"nvim-telescope/telescope.nvim", tag = "0.1.4",
-- or , branch = '0.1.x',
dependencies = { "nvim-lua/plenary.nvim" }
},
-- 2023-12-28 02:09 新增加的插件,有待学习应用
-- {
-- "ibhagwan/fzf-lua",
-- -- optional for icon support
-- dependencies = { "nvim-tree/nvim-web-devicons" },
-- config = function()
-- -- calling `setup` is optional for customization
-- require("fzf-lua").setup({})
-- end
-- },
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
},
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
},
{
"lewis6991/gitsigns.nvim",
},
{
"NvChad/nvim-colorizer.lua",
},
{ "micangl/cmp-vimtex" },
{ "SirVer/ultisnips" },
-- fcitx5 自动切换,这也是Archlinux wiki上推荐的方法
{ "h-hg/fcitx.nvim" },
})
|