nvim/lua/core/plug.lua

83 lines
1.3 KiB
Lua
Raw Normal View History

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',
'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
2023-05-08 11:33:18 +08:00
{
'iamcco/markdown-preview.nvim',
ft = {
'markdown',
}
},
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-05-08 11:30:06 +08:00
2023-05-08 11:33:18 +08:00
-- github copilot
2023-03-25 09:09:33 +08:00
'github/copilot.vim',
2023-02-11 13:36:26 +08:00
2023-05-02 21:12:12 +08:00
-- fzf
'vijaymarupudi/nvim-fzf',
2023-05-08 10:52:46 +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
-- 项目管理
-- 'Shatur/neovim-session-manager'
2023-05-08 10:52:46 +08:00
})
2023-01-19 18:14:43 +08:00