LunarVim/lua/plugins.lua

187 lines
4.1 KiB
Lua
Raw Normal View History

return {
2021-07-07 05:22:46 +02:00
-- Packer can manage itself as an optional plugin
{ "wbthomason/packer.nvim" },
{ "neovim/nvim-lspconfig" },
{ "tamago324/nlsp-settings.nvim" },
{ "jose-elias-alvarez/null-ls.nvim" },
{ "antoinemadec/FixCursorHold.nvim" }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
{
2021-07-10 19:27:52 +02:00
"kabouzeid/nvim-lspinstall",
event = "VimEnter",
config = function()
local lspinstall = require "core.lspinstall"
lspinstall.setup()
2021-07-10 19:27:52 +02:00
end,
},
2021-07-10 19:27:52 +02:00
{ "nvim-lua/popup.nvim" },
{ "nvim-lua/plenary.nvim" },
2021-07-10 09:19:44 +02:00
-- Telescope
{
2021-07-07 05:22:46 +02:00
"nvim-telescope/telescope.nvim",
config = function()
require("core.telescope").setup()
end,
disable = not lvim.builtin.telescope.active,
},
2021-09-08 01:23:14 +02:00
-- Install nvim-cmp, and buffer source as a dependency
{
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",
},
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,
},
{
"rafamadriz/friendly-snippets",
2021-09-08 01:23:14 +02:00
-- event = "InsertCharPre",
-- disable = not lvim.builtin.compe.active,
},
2021-07-07 05:22:46 +02:00
2021-07-10 16:51:53 +02:00
-- Autopairs
{
2021-07-10 16:51:53 +02:00
"windwp/nvim-autopairs",
-- event = "InsertEnter",
2021-09-08 01:23:14 +02:00
after = "nvim-cmp",
2021-07-10 16:51:53 +02:00
config = function()
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-10 16:51:53 +02:00
2021-07-07 05:22:46 +02:00
-- Treesitter
{
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()
end,
},
2021-07-17 00:30:38 +02:00
2021-07-10 09:19:44 +02:00
-- NvimTree
{
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",
-- 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,
disable = not lvim.builtin.nvimtree.active,
},
2021-07-07 05:22:46 +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",
disable = not lvim.builtin.gitsigns.active,
},
2021-07-07 05:22:46 +02:00
-- Whichkey
{
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",
disable = not lvim.builtin.which_key.active,
},
2021-07-07 05:22:46 +02:00
-- Comments
{
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()
require("core.comment").setup()
2021-07-07 05:22:46 +02:00
end,
disable = not lvim.builtin.comment.active,
},
2021-07-07 05:22:46 +02:00
-- project.nvim
{
"ahmedkhalf/project.nvim",
2021-07-12 17:58:30 +02:00
config = function()
require("core.project").setup()
2021-07-12 17:58:30 +02:00
end,
disable = not lvim.builtin.project.active,
},
2021-07-12 17:58:30 +02:00
2021-07-07 05:22:46 +02:00
-- Icons
{ "kyazdani42/nvim-web-devicons" },
2021-07-07 05:22:46 +02:00
-- Status Line and Bufferline
{
-- "hoob3rt/lualine.nvim",
"shadmansaleh/lualine.nvim",
-- "Lunarvim/lualine.nvim",
2021-07-08 03:57:36 +02:00
config = function()
require("core.lualine").setup()
2021-07-08 03:57:36 +02:00
end,
disable = not lvim.builtin.lualine.active,
},
2021-07-07 05:22:46 +02:00
{
2021-07-07 05:22:46 +02:00
"romgrk/barbar.nvim",
config = function()
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-07 05:22:46 +02:00
2021-07-10 09:19:44 +02:00
-- Debugging
{
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,
disable = not lvim.builtin.dap.active,
},
2021-07-10 09:19:44 +02:00
-- Debugger management
{
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",
disable = not lvim.builtin.dap.active,
},
2021-07-10 09:19:44 +02:00
2021-07-07 05:22:46 +02:00
-- Dashboard
{
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,
disable = not lvim.builtin.dashboard.active,
},
2021-07-10 01:38:15 +02:00
-- Terminal
{
"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,
disable = not lvim.builtin.terminal.active,
},
}