88 lines
1.4 KiB
Lua
88 lines
1.4 KiB
Lua
local G = require('G')
|
|
|
|
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
|
|
|
|
G.opt.rtp:prepend(lazypath)
|
|
|
|
-- Example using a list of specs with the default options
|
|
|
|
require("lazy").setup({
|
|
lockfile = false,
|
|
|
|
-- 主题插件
|
|
'nvim-lualine/lualine.nvim',
|
|
'morhetz/gruvbox',
|
|
'shaunsingh/nord.nvim',
|
|
'yaocccc/nvim-hlchunk',
|
|
|
|
-- lsp 补全以及语法高亮
|
|
{'neoclide/coc.nvim', branch = 'release'},
|
|
'nvim-treesitter/nvim-treesitter',
|
|
|
|
-- surround 和 wildfire 配合有神奇的效果
|
|
'tpope/vim-surround',
|
|
'gcmt/wildfire.vim',
|
|
|
|
-- 格式整理
|
|
'junegunn/vim-easy-align',
|
|
'tpope/vim-commentary',
|
|
|
|
--颜色识别
|
|
'lilydjwg/colorizer',
|
|
|
|
--markdown
|
|
{
|
|
'iamcco/markdown-preview.nvim',
|
|
ft = {
|
|
'markdown',
|
|
}
|
|
},
|
|
|
|
-- 文件搜索
|
|
'junegunn/fzf',
|
|
|
|
-- 多光标
|
|
'terryma/vim-multiple-cursors',
|
|
|
|
-- github copilot
|
|
'github/copilot.vim',
|
|
|
|
-- fzf
|
|
'vijaymarupudi/nvim-fzf',
|
|
|
|
-- nerdtree
|
|
{
|
|
'preservim/nerdtree',
|
|
dependencies = {
|
|
'Xuyuanp/nerdtree-git-plugin',
|
|
'ryanoasis/vim-devicons',
|
|
},
|
|
cmd = 'NERDTreeToggle',
|
|
},
|
|
|
|
-- 项目管理
|
|
{
|
|
'Shatur/neovim-session-manager',
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim'
|
|
}
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|