config.nvim/lua/lazy-plugins.lua

130 lines
2.4 KiB
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)
opts = {
install = {
colorscheme = { "gruvbox" }
}
}
require("lazy").setup({
{
"ellisonleao/gruvbox.nvim",
lazy = false,
priority = 1000,
config = function()
vim.cmd([[colorscheme gruvbox]])
end
},
{
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("plugins.statusline")
end
},
{
"williamboman/mason.nvim"
},
{
"nvim-treesitter/nvim-treesitter-context",
dependencies = {
"nvim-treesitter/nvim-treesitter"
},
},
{
"HiPhish/nvim-ts-rainbow2",
dependencies = {
"nvim-treesitter/nvim-treesitter",
config = function()
require("plugins.treesitter")
end
},
},
{
"hrsh7th/nvim-cmp",
dependencies = {
{
"hrsh7th/cmp-nvim-lsp",
},
-- TODO: check the cmp sources
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-nvim-lsp-document-symbol",
"FelipeLema/cmp-async-path",
"petertriho/cmp-git",
"ray-x/cmp-treesitter",
{
"saadparwaiz1/cmp_luasnip",
dependencies = {
"L3MON4D3/LuaSnip"
}
},
{
"windwp/nvim-autopairs",
config = function()
require("plugins.nvim-autopairs")
end
}
},
event = { "InsertEnter", "CmdlineEnter" },
config = function()
require("plugins/cmp")
end
},
{
"hrsh7th/cmp-nvim-lsp",
dependencies = {
"neovim/nvim-lspconfig",
dependencies = {
{
"williamboman/mason-lspconfig.nvim",
dependencies = {
"williamboman/mason.nvim",
}
},
"null-ls.nvim"
},
config = function()
require("plugins.lsp")
end,
}
},
{
"jay-babu/mason-null-ls.nvim",
config = function()
require("plugins.null-ls")
end,
dependencies = {
"williamboman/mason.nvim",
"jose-elias-alvarez/null-ls.nvim"
}
},
"machakann/vim-sandwich",
"numToStr/Comment.nvim",
"andymass/vim-matchup",
{
"nvim-telescope/telescope.nvim",
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
require("plugins.telescope")
end
},
{
"preservim/tagbar",
cmd = "TagbarToggle"
},
{
"winston0410/range-highlight.nvim",
event = "CmdlineEnter"
}
}, opts)