2021-07-18 20:08:14 +02:00
|
|
|
return {
|
2021-07-07 05:22:46 +02:00
|
|
|
-- Packer can manage itself as an optional plugin
|
2021-07-18 20:08:14 +02:00
|
|
|
{ "wbthomason/packer.nvim" },
|
|
|
|
{ "neovim/nvim-lspconfig" },
|
2021-07-25 03:17:11 +02:00
|
|
|
{ "tamago324/nlsp-settings.nvim" },
|
|
|
|
{ "jose-elias-alvarez/null-ls.nvim" },
|
2021-08-29 20:11:04 +02:00
|
|
|
{ "antoinemadec/FixCursorHold.nvim" }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-10-03 16:13:46 +02:00
|
|
|
"williamboman/nvim-lsp-installer",
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-10 19:27:52 +02:00
|
|
|
|
2021-07-18 20:08:14 +02:00
|
|
|
{ "nvim-lua/popup.nvim" },
|
|
|
|
{ "nvim-lua/plenary.nvim" },
|
2021-07-10 09:19:44 +02:00
|
|
|
-- Telescope
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-07 05:22:46 +02:00
|
|
|
"nvim-telescope/telescope.nvim",
|
2021-07-20 23:28:29 +02:00
|
|
|
config = function()
|
|
|
|
require("core.telescope").setup()
|
|
|
|
end,
|
2021-08-17 17:20:18 +02:00
|
|
|
disable = not lvim.builtin.telescope.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-09-08 01:23:14 +02:00
|
|
|
-- Install nvim-cmp, and buffer source as a dependency
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-09-08 01:23:14 +02:00
|
|
|
"hrsh7th/nvim-cmp",
|
2021-07-07 05:22:46 +02:00
|
|
|
config = function()
|
2021-09-08 01:23:14 +02:00
|
|
|
require("core.cmp").setup()
|
2021-07-07 05:22:46 +02:00
|
|
|
end,
|
2021-09-08 01:23:14 +02:00
|
|
|
requires = {
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
"saadparwaiz1/cmp_luasnip",
|
|
|
|
"hrsh7th/cmp-buffer",
|
|
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
|
|
"hrsh7th/cmp-path",
|
|
|
|
"hrsh7th/cmp-nvim-lua",
|
|
|
|
},
|
2021-09-13 07:47:25 +02:00
|
|
|
run = function()
|
|
|
|
-- cmp's config requires cmp to be installed to run the first time
|
|
|
|
if not lvim.builtin.cmp then
|
|
|
|
require("core.cmp").config()
|
|
|
|
end
|
|
|
|
end,
|
2021-07-28 06:02:40 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"rafamadriz/friendly-snippets",
|
2021-09-08 01:23:14 +02:00
|
|
|
-- event = "InsertCharPre",
|
|
|
|
-- disable = not lvim.builtin.compe.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-07 05:22:46 +02:00
|
|
|
|
2021-07-10 16:51:53 +02:00
|
|
|
-- Autopairs
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-10 16:51:53 +02:00
|
|
|
"windwp/nvim-autopairs",
|
2021-07-10 22:10:03 +02:00
|
|
|
-- event = "InsertEnter",
|
2021-09-08 01:23:14 +02:00
|
|
|
after = "nvim-cmp",
|
2021-07-10 16:51:53 +02:00
|
|
|
config = function()
|
2021-08-17 17:20:18 +02:00
|
|
|
require("core.autopairs").setup()
|
2021-07-10 16:51:53 +02:00
|
|
|
end,
|
2021-09-08 01:23:14 +02:00
|
|
|
disable = not lvim.builtin.autopairs.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-10 16:51:53 +02:00
|
|
|
|
2021-07-07 05:22:46 +02:00
|
|
|
-- Treesitter
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-13 03:11:43 +02:00
|
|
|
"nvim-treesitter/nvim-treesitter",
|
2021-07-26 06:34:40 +02:00
|
|
|
branch = "0.5-compat",
|
|
|
|
-- run = ":TSUpdate",
|
2021-07-13 03:11:43 +02:00
|
|
|
config = function()
|
|
|
|
require("core.treesitter").setup()
|
2021-07-17 00:36:43 +02:00
|
|
|
end,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-17 00:30:38 +02:00
|
|
|
|
2021-07-10 09:19:44 +02:00
|
|
|
-- NvimTree
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-07 05:22:46 +02:00
|
|
|
"kyazdani42/nvim-tree.lua",
|
2021-07-10 09:19:44 +02:00
|
|
|
-- event = "BufWinOpen",
|
2021-07-07 05:22:46 +02:00
|
|
|
-- cmd = "NvimTreeToggle",
|
2021-07-19 09:17:49 +02:00
|
|
|
-- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
|
2021-07-07 05:22:46 +02:00
|
|
|
config = function()
|
2021-07-13 03:11:43 +02:00
|
|
|
require("core.nvimtree").setup()
|
2021-07-07 05:22:46 +02:00
|
|
|
end,
|
2021-08-17 17:20:18 +02:00
|
|
|
disable = not lvim.builtin.nvimtree.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-07 05:22:46 +02:00
|
|
|
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-07 05:22:46 +02:00
|
|
|
"lewis6991/gitsigns.nvim",
|
|
|
|
|
|
|
|
config = function()
|
2021-07-13 01:30:07 +02:00
|
|
|
require("core.gitsigns").setup()
|
2021-07-07 05:22:46 +02:00
|
|
|
end,
|
|
|
|
event = "BufRead",
|
2021-08-17 17:20:18 +02:00
|
|
|
disable = not lvim.builtin.gitsigns.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-07 05:22:46 +02:00
|
|
|
|
2021-07-25 03:17:11 +02:00
|
|
|
-- Whichkey
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-08 01:27:27 +02:00
|
|
|
"folke/which-key.nvim",
|
|
|
|
config = function()
|
2021-07-13 03:11:43 +02:00
|
|
|
require("core.which-key").setup()
|
2021-07-08 01:27:27 +02:00
|
|
|
end,
|
|
|
|
event = "BufWinEnter",
|
2021-08-17 17:20:18 +02:00
|
|
|
disable = not lvim.builtin.which_key.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-07 05:22:46 +02:00
|
|
|
|
|
|
|
-- Comments
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-07 05:22:46 +02:00
|
|
|
"terrortylor/nvim-comment",
|
2021-07-10 16:51:53 +02:00
|
|
|
event = "BufRead",
|
2021-07-07 05:22:46 +02:00
|
|
|
config = function()
|
2021-09-05 19:17:17 +02:00
|
|
|
require("core.comment").setup()
|
2021-07-07 05:22:46 +02:00
|
|
|
end,
|
2021-08-17 17:20:18 +02:00
|
|
|
disable = not lvim.builtin.comment.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-07 05:22:46 +02:00
|
|
|
|
2021-08-18 07:34:26 +02:00
|
|
|
-- project.nvim
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-08-18 07:34:26 +02:00
|
|
|
"ahmedkhalf/project.nvim",
|
2021-07-12 17:58:30 +02:00
|
|
|
config = function()
|
2021-08-18 07:34:26 +02:00
|
|
|
require("core.project").setup()
|
2021-07-12 17:58:30 +02:00
|
|
|
end,
|
2021-08-18 07:34:26 +02:00
|
|
|
disable = not lvim.builtin.project.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-12 17:58:30 +02:00
|
|
|
|
2021-07-07 05:22:46 +02:00
|
|
|
-- Icons
|
2021-07-18 20:08:14 +02:00
|
|
|
{ "kyazdani42/nvim-web-devicons" },
|
2021-07-07 05:22:46 +02:00
|
|
|
|
|
|
|
-- Status Line and Bufferline
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-08-20 11:16:29 +02:00
|
|
|
-- "hoob3rt/lualine.nvim",
|
|
|
|
"shadmansaleh/lualine.nvim",
|
|
|
|
-- "Lunarvim/lualine.nvim",
|
2021-07-08 03:57:36 +02:00
|
|
|
config = function()
|
2021-08-20 11:16:29 +02:00
|
|
|
require("core.lualine").setup()
|
2021-07-08 03:57:36 +02:00
|
|
|
end,
|
2021-08-20 11:16:29 +02:00
|
|
|
disable = not lvim.builtin.lualine.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-07 05:22:46 +02:00
|
|
|
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-07 05:22:46 +02:00
|
|
|
"romgrk/barbar.nvim",
|
|
|
|
config = function()
|
2021-08-06 04:04:21 +02:00
|
|
|
require("core.bufferline").setup()
|
2021-07-07 05:22:46 +02:00
|
|
|
end,
|
2021-07-08 03:57:36 +02:00
|
|
|
event = "BufWinEnter",
|
2021-08-05 21:50:09 +02:00
|
|
|
disable = not lvim.builtin.bufferline.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-07 05:22:46 +02:00
|
|
|
|
2021-07-10 09:19:44 +02:00
|
|
|
-- Debugging
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-10 09:19:44 +02:00
|
|
|
"mfussenegger/nvim-dap",
|
2021-07-10 21:34:59 +02:00
|
|
|
-- event = "BufWinEnter",
|
2021-07-10 09:19:44 +02:00
|
|
|
config = function()
|
2021-07-13 03:11:43 +02:00
|
|
|
require("core.dap").setup()
|
2021-07-10 09:19:44 +02:00
|
|
|
end,
|
2021-07-25 03:17:11 +02:00
|
|
|
disable = not lvim.builtin.dap.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-10 09:19:44 +02:00
|
|
|
|
|
|
|
-- Debugger management
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-10 09:19:44 +02:00
|
|
|
"Pocco81/DAPInstall.nvim",
|
2021-07-10 21:34:59 +02:00
|
|
|
-- event = "BufWinEnter",
|
2021-07-10 09:19:44 +02:00
|
|
|
-- event = "BufRead",
|
2021-07-25 03:17:11 +02:00
|
|
|
disable = not lvim.builtin.dap.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-10 09:19:44 +02:00
|
|
|
|
2021-07-07 05:22:46 +02:00
|
|
|
-- Dashboard
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-07-07 05:22:46 +02:00
|
|
|
"ChristianChiarulli/dashboard-nvim",
|
2021-07-07 05:29:34 +02:00
|
|
|
event = "BufWinEnter",
|
2021-07-10 03:01:23 +02:00
|
|
|
config = function()
|
2021-07-13 03:11:43 +02:00
|
|
|
require("core.dashboard").setup()
|
2021-07-10 03:01:23 +02:00
|
|
|
end,
|
2021-07-25 03:17:11 +02:00
|
|
|
disable = not lvim.builtin.dashboard.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
2021-07-10 01:38:15 +02:00
|
|
|
|
2021-07-25 03:17:11 +02:00
|
|
|
-- Terminal
|
2021-07-18 20:08:14 +02:00
|
|
|
{
|
2021-09-06 16:06:28 +02:00
|
|
|
"akinsho/toggleterm.nvim",
|
2021-07-10 09:19:44 +02:00
|
|
|
event = "BufWinEnter",
|
|
|
|
config = function()
|
2021-07-15 05:15:12 +02:00
|
|
|
require("core.terminal").setup()
|
2021-07-10 09:19:44 +02:00
|
|
|
end,
|
2021-07-25 03:17:11 +02:00
|
|
|
disable = not lvim.builtin.terminal.active,
|
2021-07-18 20:08:14 +02:00
|
|
|
},
|
|
|
|
}
|