nvim/lua/core/plug.lua

53 lines
880 B
Lua
Raw Normal View History

2023-01-21 21:48:17 +08:00
-- lazy插件自动安装插件
2023-01-19 20:33:35 +08:00
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2023-01-19 18:14:43 +08:00
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
2023-01-22 17:20:38 +08:00
"--depth=1",
2023-01-19 20:33:35 +08:00
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
2023-01-19 18:14:43 +08:00
lazypath,
})
end
2023-01-22 17:20:38 +08:00
2023-01-19 18:14:43 +08:00
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
-- 主题插件
2023-01-22 17:20:38 +08:00
'nvim-lualine/lualine.nvim',
2023-01-19 18:14:43 +08:00
'morhetz/gruvbox',
2023-01-22 17:20:38 +08:00
'kdheepak/tabline.nvim',
2023-01-19 18:14:43 +08:00
2023-01-19 19:11:37 +08:00
-- lsp 补全
2023-01-19 18:14:43 +08:00
{'neoclide/coc.nvim', branch = 'release'},
-- surround 和 wildfire 配合有神奇的效果
'yaocccc/vim-surround',
'gcmt/wildfire.vim',
2023-01-19 20:33:35 +08:00
-- easymotion
'easymotion/vim-easymotion',
2023-01-19 18:14:43 +08:00
-- 格式整理
'junegunn/vim-easy-align',
'scrooloose/nerdcommenter',
--颜色识别
'lilydjwg/colorizer',
--markdown
2023-01-19 20:33:35 +08:00
2023-01-19 21:04:31 +08:00
-- git
2023-01-19 20:33:35 +08:00
'kdheepak/lazygit.nvim',
2023-01-19 18:14:43 +08:00
})