2023-09-30 20:08:03 +08:00
|
|
|
|
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({
|
2023-05-09 20:06:48 +08:00
|
|
|
lockfile = false,
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- 主题插件
|
|
|
|
'nvim-lualine/lualine.nvim',
|
|
|
|
'morhetz/gruvbox',
|
|
|
|
'shaunsingh/nord.nvim',
|
|
|
|
'yaocccc/nvim-hlchunk',
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- lsp 补全以及语法高亮
|
2023-09-30 20:08:03 +08:00
|
|
|
-- {'neoclide/coc.nvim', branch = 'release'},
|
|
|
|
-- 'nvim-treesitter/nvim-treesitter',
|
2023-01-28 16:20:45 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- surround 和 wildfire 配合有神奇的效果
|
|
|
|
'tpope/vim-surround',
|
|
|
|
'gcmt/wildfire.vim',
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- 格式整理
|
|
|
|
'junegunn/vim-easy-align',
|
|
|
|
'tpope/vim-commentary',
|
2023-01-19 18:14:43 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
--颜色识别
|
|
|
|
'lilydjwg/colorizer',
|
2023-01-19 20:33:35 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
--markdown
|
|
|
|
{
|
|
|
|
'iamcco/markdown-preview.nvim',
|
|
|
|
ft = {
|
|
|
|
'markdown',
|
|
|
|
}
|
|
|
|
},
|
2023-01-28 16:20:45 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- 文件搜索
|
2023-09-30 20:08:03 +08:00
|
|
|
-- 'junegunn/fzf',
|
2023-02-10 17:24:19 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- 多光标
|
2023-09-30 20:08:03 +08:00
|
|
|
-- 'terryma/vim-multiple-cursors',
|
2023-05-08 11:30:06 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- github copilot
|
2023-09-30 20:08:03 +08:00
|
|
|
-- 'github/copilot.vim',
|
2023-02-11 13:36:26 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- fzf
|
|
|
|
'vijaymarupudi/nvim-fzf',
|
2023-05-02 21:12:12 +08:00
|
|
|
|
2023-05-09 20:06:48 +08:00
|
|
|
-- nerdtree
|
2023-05-08 11:30:06 +08:00
|
|
|
{
|
|
|
|
'preservim/nerdtree',
|
|
|
|
dependencies = {
|
|
|
|
'Xuyuanp/nerdtree-git-plugin',
|
|
|
|
'ryanoasis/vim-devicons',
|
|
|
|
},
|
|
|
|
cmd = 'NERDTreeToggle',
|
|
|
|
},
|
2023-05-09 14:08:36 +08:00
|
|
|
|
|
|
|
-- 项目管理
|
2023-05-16 21:58:17 +08:00
|
|
|
-- {
|
|
|
|
-- 'Shatur/neovim-session-manager',
|
|
|
|
-- dependencies = {
|
|
|
|
-- 'nvim-lua/plenary.nvim'
|
|
|
|
-- }
|
|
|
|
-- },
|
|
|
|
|
2023-09-30 20:08:03 +08:00
|
|
|
--{
|
|
|
|
-- 'glepnir/dashboard-nvim',
|
|
|
|
-- event = 'VimEnter',
|
|
|
|
-- config = function()
|
|
|
|
-- require('dashboard').setup {
|
2023-05-16 21:58:17 +08:00
|
|
|
-- config
|
2023-09-30 20:08:03 +08:00
|
|
|
-- }
|
|
|
|
-- end,
|
|
|
|
-- dependencies = { {'nvim-tree/nvim-web-devicons'}}
|
|
|
|
-- }
|
2023-05-09 14:08:36 +08:00
|
|
|
|
2023-05-08 10:52:46 +08:00
|
|
|
})
|
2023-01-19 18:14:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|