44 lines
994 B
Lua
44 lines
994 B
Lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
vim.fn.system({
|
|
"git",
|
|
"clone",
|
|
"--filter=blob:none",
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
"--branch=stable", -- latest stable release
|
|
lazypath,
|
|
})
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
local plugins = {
|
|
'folke/lazy.nvim',
|
|
'ellisonleao/gruvbox.nvim',
|
|
'nvim-tree/nvim-tree.lua',
|
|
'nvim-tree/nvim-web-devicons',
|
|
'nvim-lualine/lualine.nvim',
|
|
'nvim-treesitter/nvim-treesitter',
|
|
{'windwp/nvim-autopairs',
|
|
event = "InsertEnter",
|
|
opts = {} -- this is equalent to setup({}) function
|
|
},
|
|
-- fzf
|
|
{
|
|
'nvim-telescope/telescope.nvim',
|
|
branch = "0.1.x",
|
|
dependencies = {{'nvim-lua/plenary.nvim'}}
|
|
},
|
|
-- Lsp
|
|
{
|
|
'williamboman/mason.nvim',
|
|
'williamboman/mason-lspconfig.nvim',
|
|
'neovim/nvim-lspconfig'
|
|
},
|
|
-- completion
|
|
'hrsh7th/nvim-cmp',
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
}
|
|
|
|
local opts = {}
|
|
|
|
require("lazy").setup(plugins, opts)
|