LunarVim/lua/lvim/plugins.lua
Abouzar Parvan 655fd1b0ca
refactor: uplift neovim's minimum version requirement to 0.6.0 (#2093)
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2021-12-23 10:33:20 +01:00

269 lines
7.3 KiB
Lua

local commit = {
barbar = "6e638309efcad2f308eb9c5eaccf6f62b794bbab",
cmp_buffer = "e26cdfb26f645cd4c6330b541b7e74ff69daa483",
cmp_luasnip = "7bd2612533db6863381193df83f9934b373b21e1",
cmp_nvim_lsp = "134117299ff9e34adde30a735cd8ca9cf8f3db81",
cmp_nvim_lua = "d276254e7198ab7d00f117e88e223b4bd8c02d21",
cmp_path = "81d88dfcafe26cc0cc856fc66f4677b20e6a9ffc",
comment = "9e80d5146013275277238c89bbcaf4164f4e5140",
dapinstall = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
fixcursorhold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
friendly_snippets = "24481f883c980ed8c4c5c08bf8fcdd0fef57c16f",
gitsigns = "a451f97117bd1ede582a6b9db61c387c48d880b6",
lualine = "a5b3895b57a0ca2e8fec0040afc6cfa81b2a95a4",
luasnip = "3e4da0cfea0a2f0b4749369bc7ed247c1412a854",
nlsp_settings = "053495bfc97c9c61bebf740acbbcaeb1ebc0704c",
null_ls = "b7de45a0e62bf93f19db2b43ecded48c5763248d",
nvim_autopairs = "e90e12c789851f2e0a61dd63e4b2e76701a8e2b7",
nvim_cmp = "4a19645374b3c10538bd363e92099d94221efaea",
nvim_dap = "a6fa644f9de62c594a8a9cf6f2aaf324b5a6108b",
nvim_lsp_installer = "81125c9d4c076f55dab58c0ec2e282412767d134",
nvim_lspconfig = "f84f592816a6b0c55e2a655b56c480683ad92c63",
nvim_notify = "243811198d3a937be03535bbe899446f235dda75",
nvim_tree = "0aec64d56c9448a039408228d410a01c41125d48",
nvim_treesitter = "56634f49ab3d8122153c8c5582c581fb6a6af075",
nvim_ts_context_commentstring = "097df33c9ef5bbd3828105e4bee99965b758dc3f",
nvim_web_devicons = "ac71ca88b1136e1ecb2aefef4948130f31aa40d1",
packer = "851c62c5ecd3b5adc91665feda8f977e104162a5",
plenary = "a672e11c816d4a91ef01253ba1a2567d20e08e55",
popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
project = "71d0e23dcfc43cfd6bb2a97dc5a7de1ab47a6538",
structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
telescope = "9aaaa0c5f3eb665b51bbcafda084de4b0952fef0",
telescope_fzf_native = "b8662b076175e75e6497c59f3e2799b879d7b954",
toggleterm = "265bbff68fbb8b2a5fb011272ec469850254ec9f",
which_key = "0fd9de78fe09215e1b7c6173ff1b0b90c8ed6ec4",
}
return {
-- Packer can manage itself as an optional plugin
{ "wbthomason/packer.nvim", commit = commit.packer },
{ "neovim/nvim-lspconfig", commit = commit.nvim_lspconfig },
{ "tamago324/nlsp-settings.nvim", commit = commit.nlsp_settings },
{
"jose-elias-alvarez/null-ls.nvim",
commit = commit.null_ls,
},
{ "antoinemadec/FixCursorHold.nvim", commit = commit.fixcursorhold }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
{
"williamboman/nvim-lsp-installer",
commit = commit.nvim_lsp_installer,
},
{
"rcarriga/nvim-notify",
commit = commit.nvim_notify,
disable = not lvim.builtin.notify.active,
},
{ "Tastyep/structlog.nvim", commit = commit.structlog },
{ "nvim-lua/popup.nvim", commit = commit.popup },
{ "nvim-lua/plenary.nvim", commit = commit.plenary },
-- Telescope
{
"nvim-telescope/telescope.nvim",
commit = commit.telescope,
config = function()
require("lvim.core.telescope").setup()
end,
disable = not lvim.builtin.telescope.active,
},
{
"nvim-telescope/telescope-fzf-native.nvim",
commit = commit.telescope_fzf_native,
run = "make",
disable = not lvim.builtin.telescope.active,
},
-- Install nvim-cmp, and buffer source as a dependency
{
"hrsh7th/nvim-cmp",
commit = commit.nvim_cmp,
config = function()
if lvim.builtin.cmp then
require("lvim.core.cmp").setup()
end
end,
requires = {
"L3MON4D3/LuaSnip",
"rafamadriz/friendly-snippets",
},
},
{
"rafamadriz/friendly-snippets",
commit = commit.friendly_snippets,
},
{
"L3MON4D3/LuaSnip",
config = function()
require("luasnip/loaders/from_vscode").lazy_load()
end,
commit = commit.luasnip,
},
{
"hrsh7th/cmp-nvim-lsp",
commit = commit.cmp_nvim_lsp,
},
{
"saadparwaiz1/cmp_luasnip",
commit = commit.cmp_luasnip,
},
{
"hrsh7th/cmp-buffer",
commit = commit.cmp_buffer,
},
{
"hrsh7th/cmp-path",
commit = commit.cmp_path,
},
{
"hrsh7th/cmp-nvim-lua",
commit = commit.cmp_nvim_lua,
},
-- Autopairs
{
"windwp/nvim-autopairs",
commit = commit.nvim_autopairs,
-- event = "InsertEnter",
config = function()
require("lvim.core.autopairs").setup()
end,
disable = not lvim.builtin.autopairs.active,
},
-- Treesitter
{
"nvim-treesitter/nvim-treesitter",
commit = commit.nvim_treesitter,
branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
-- run = ":TSUpdate",
config = function()
require("lvim.core.treesitter").setup()
end,
},
{
"JoosepAlviste/nvim-ts-context-commentstring",
commit = commit.nvim_ts_context_commentstring,
event = "BufReadPost",
},
-- NvimTree
{
"kyazdani42/nvim-tree.lua",
-- event = "BufWinOpen",
-- cmd = "NvimTreeToggle",
commit = commit.nvim_tree,
config = function()
require("lvim.core.nvimtree").setup()
end,
disable = not lvim.builtin.nvimtree.active,
},
{
"lewis6991/gitsigns.nvim",
commit = commit.gitsigns,
config = function()
require("lvim.core.gitsigns").setup()
end,
event = "BufRead",
disable = not lvim.builtin.gitsigns.active,
},
-- Whichkey
{
"folke/which-key.nvim",
commit = commit.which_key,
config = function()
require("lvim.core.which-key").setup()
end,
event = "BufWinEnter",
disable = not lvim.builtin.which_key.active,
},
-- Comments
{
"numToStr/Comment.nvim",
commit = commit.comment,
event = "BufRead",
config = function()
require("lvim.core.comment").setup()
end,
disable = not lvim.builtin.comment.active,
},
-- project.nvim
{
"ahmedkhalf/project.nvim",
commit = commit.project,
config = function()
require("lvim.core.project").setup()
end,
disable = not lvim.builtin.project.active,
},
-- Icons
{ "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
-- Status Line and Bufferline
{
-- "hoob3rt/lualine.nvim",
"nvim-lualine/lualine.nvim",
commit = commit.lualine,
-- "Lunarvim/lualine.nvim",
config = function()
require("lvim.core.lualine").setup()
end,
disable = not lvim.builtin.lualine.active,
},
{
"romgrk/barbar.nvim",
commit = commit.barbar,
config = function()
require("lvim.core.bufferline").setup()
end,
event = "BufWinEnter",
disable = not lvim.builtin.bufferline.active,
},
-- Debugging
{
"mfussenegger/nvim-dap",
commit = commit.nvim_dap,
-- event = "BufWinEnter",
config = function()
require("lvim.core.dap").setup()
end,
disable = not lvim.builtin.dap.active,
},
-- Debugger management
{
"Pocco81/DAPInstall.nvim",
commit = commit.dapinstall,
-- event = "BufWinEnter",
-- event = "BufRead",
disable = not lvim.builtin.dap.active,
},
-- Dashboard
{
"ChristianChiarulli/dashboard-nvim",
event = "BufWinEnter",
config = function()
require("lvim.core.dashboard").setup()
end,
disable = not lvim.builtin.dashboard.active,
},
-- Terminal
{
"akinsho/toggleterm.nvim",
commit = commit.toggleterm,
event = "BufWinEnter",
config = function()
require("lvim.core.terminal").setup()
end,
disable = not lvim.builtin.terminal.active,
},
}