nvim/lua/core/plug.lua
2023-03-19 00:22:18 +08:00

58 lines
992 B
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',
'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',
-- 文件搜索
'junegunn/fzf',
-- 多光标
'terryma/vim-multiple-cursors',
})