2023-01-28 16:20:45 +08:00
|
|
|
local G = require('G')
|
2023-01-22 17:20:38 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
local lazypath = G.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
|
|
if not G.loop.fs_stat(lazypath) then
|
|
|
|
G.fn.system({
|
|
|
|
"git",
|
|
|
|
"clone",
|
|
|
|
"--filter=blob:none",
|
|
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
|
|
"--branch=stable", -- latest stable release
|
|
|
|
lazypath,
|
|
|
|
})
|
|
|
|
end
|
2023-02-05 04:41:06 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
G.opt.rtp:prepend(lazypath)
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
-- Example using a list of specs with the default options
|
2023-01-28 16:20:45 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
require("lazy").setup({
|
|
|
|
lockfile = false,
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
-- 主题插件
|
|
|
|
'nvim-lualine/lualine.nvim',
|
|
|
|
'morhetz/gruvbox',
|
2023-04-29 22:30:25 +08:00
|
|
|
'shaunsingh/nord.nvim',
|
2023-03-19 00:22:18 +08:00
|
|
|
'yaocccc/nvim-hlchunk',
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
-- lsp 补全以及语法高亮
|
|
|
|
{'neoclide/coc.nvim', branch = 'release'},
|
|
|
|
'nvim-treesitter/nvim-treesitter',
|
2023-01-28 16:20:45 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
-- surround 和 wildfire 配合有神奇的效果
|
|
|
|
'tpope/vim-surround',
|
|
|
|
'gcmt/wildfire.vim',
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
-- 格式整理
|
|
|
|
'junegunn/vim-easy-align',
|
|
|
|
'tpope/vim-commentary',
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
--颜色识别
|
|
|
|
'lilydjwg/colorizer',
|
2023-01-19 20:33:35 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
--markdown
|
|
|
|
'iamcco/markdown-preview.nvim',
|
2023-01-28 16:20:45 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
-- 文件搜索
|
|
|
|
'junegunn/fzf',
|
2023-02-10 17:24:19 +08:00
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
-- 多光标
|
|
|
|
'terryma/vim-multiple-cursors',
|
2023-03-25 09:09:33 +08:00
|
|
|
|
|
|
|
-- copilot
|
|
|
|
'github/copilot.vim',
|
2023-02-11 13:36:26 +08:00
|
|
|
|
2023-05-02 21:12:12 +08:00
|
|
|
-- fzf
|
|
|
|
'vijaymarupudi/nvim-fzf',
|
|
|
|
|
2023-03-19 00:22:18 +08:00
|
|
|
})
|
2023-01-19 18:14:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|