2022-01-30 08:21:46 +01:00
|
|
|
local plugins = {
|
2022-05-23 09:24:03 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["nvim-lua/plenary.nvim"] = {},
|
|
|
|
["lewis6991/impatient.nvim"] = {},
|
2022-05-23 09:24:03 +02:00
|
|
|
["wbthomason/packer.nvim"] = {},
|
2022-04-27 17:42:28 +02:00
|
|
|
["NvChad/extensions"] = {},
|
2022-03-20 22:22:16 +01:00
|
|
|
|
2022-05-03 08:43:32 +02:00
|
|
|
["NvChad/base46"] = {
|
2022-05-23 09:24:03 +02:00
|
|
|
after = "plenary.nvim",
|
2021-08-22 09:49:15 +02:00
|
|
|
config = function()
|
2022-05-06 16:44:57 +02:00
|
|
|
local ok, base46 = pcall(require, "base46")
|
2022-05-02 20:43:38 +02:00
|
|
|
|
|
|
|
if ok then
|
2022-05-06 16:44:57 +02:00
|
|
|
base46.load_theme()
|
2022-05-02 20:43:38 +02:00
|
|
|
end
|
2021-08-22 09:49:15 +02:00
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["NvChad/nvterm"] = {
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.nvterm"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["kyazdani42/nvim-web-devicons"] = {
|
2022-05-03 08:43:32 +02:00
|
|
|
after = "base46",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.icons"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-07-26 11:36:32 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["feline-nvim/feline.nvim"] = {
|
2021-08-17 08:42:33 +02:00
|
|
|
after = "nvim-web-devicons",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.statusline"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["akinsho/bufferline.nvim"] = {
|
2021-08-26 11:40:26 +02:00
|
|
|
after = "nvim-web-devicons",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.bufferline"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-07-09 05:44:04 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["lukas-reineke/indent-blankline.nvim"] = {
|
2021-08-22 09:49:15 +02:00
|
|
|
event = "BufRead",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").blankline()
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-06-27 17:29:39 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["NvChad/nvim-colorizer.lua"] = {
|
2021-08-16 09:49:09 +02:00
|
|
|
event = "BufRead",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").colorizer()
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-06-01 20:28:24 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["nvim-treesitter/nvim-treesitter"] = {
|
2022-03-01 08:13:34 +01:00
|
|
|
event = { "BufRead", "BufNewFile" },
|
2022-02-23 05:09:21 +01:00
|
|
|
run = ":TSUpdate",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.treesitter"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-06-25 18:06:13 +02:00
|
|
|
|
2021-08-26 11:40:26 +02:00
|
|
|
-- git stuff
|
2022-04-27 17:42:28 +02:00
|
|
|
["lewis6991/gitsigns.nvim"] = {
|
2022-04-30 13:39:57 +02:00
|
|
|
opt = true,
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").gitsigns()
|
|
|
|
end,
|
2021-08-26 11:40:26 +02:00
|
|
|
setup = function()
|
2022-05-10 15:43:48 +02:00
|
|
|
nvchad.packer_lazy_load "gitsigns.nvim"
|
2021-08-26 11:40:26 +02:00
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-26 11:40:26 +02:00
|
|
|
|
2021-08-27 04:26:44 +02:00
|
|
|
-- lsp stuff
|
2021-09-10 12:10:54 +02:00
|
|
|
|
2022-05-04 03:25:36 +02:00
|
|
|
["williamboman/nvim-lsp-installer"] = {
|
2022-04-30 13:39:57 +02:00
|
|
|
opt = true,
|
2021-08-26 11:40:26 +02:00
|
|
|
setup = function()
|
2022-05-10 15:43:48 +02:00
|
|
|
nvchad.packer_lazy_load "nvim-lsp-installer"
|
2021-10-01 16:04:18 +02:00
|
|
|
-- reload the current file so lsp actually starts for it
|
|
|
|
vim.defer_fn(function()
|
2021-10-02 07:29:23 +02:00
|
|
|
vim.cmd 'if &ft == "packer" | echo "" | else | silent! e %'
|
2021-10-01 16:04:18 +02:00
|
|
|
end, 0)
|
2021-08-26 11:40:26 +02:00
|
|
|
end,
|
2022-05-04 03:25:36 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
["neovim/nvim-lspconfig"] = {
|
|
|
|
after = "nvim-lsp-installer",
|
|
|
|
module = "lspconfig",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
2022-05-04 03:25:36 +02:00
|
|
|
require "plugins.configs.lsp_installer"
|
2022-04-27 17:42:28 +02:00
|
|
|
require "plugins.configs.lspconfig"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["ray-x/lsp_signature.nvim"] = {
|
2021-08-22 09:49:15 +02:00
|
|
|
after = "nvim-lspconfig",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").signature()
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-06-24 19:19:42 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["andymass/vim-matchup"] = {
|
2022-04-30 13:39:57 +02:00
|
|
|
opt = true,
|
2021-08-26 11:40:26 +02:00
|
|
|
setup = function()
|
2022-05-10 15:43:48 +02:00
|
|
|
nvchad.packer_lazy_load "vim-matchup"
|
2021-08-26 11:40:26 +02:00
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-26 11:40:26 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["max397574/better-escape.nvim"] = {
|
2022-02-12 03:01:23 +01:00
|
|
|
event = "InsertCharPre",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").better_escape()
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-07 07:55:23 +02:00
|
|
|
|
2021-08-27 03:14:58 +02:00
|
|
|
-- load luasnips + cmp related in insert mode only
|
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["rafamadriz/friendly-snippets"] = {
|
2022-01-29 15:33:59 +01:00
|
|
|
module = "cmp_nvim_lsp",
|
2022-03-01 08:13:34 +01:00
|
|
|
event = "InsertEnter",
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2022-01-29 15:33:59 +01:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["hrsh7th/nvim-cmp"] = {
|
2022-02-12 03:01:23 +01:00
|
|
|
after = "friendly-snippets",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.cmp"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-27 03:14:58 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["L3MON4D3/LuaSnip"] = {
|
2021-08-27 04:41:46 +02:00
|
|
|
wants = "friendly-snippets",
|
2022-01-29 15:33:59 +01:00
|
|
|
after = "nvim-cmp",
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").luasnip()
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-27 03:14:58 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["saadparwaiz1/cmp_luasnip"] = {
|
|
|
|
after = "LuaSnip",
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-27 03:14:58 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["hrsh7th/cmp-nvim-lua"] = {
|
2022-02-12 03:01:23 +01:00
|
|
|
after = "cmp_luasnip",
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-27 03:14:58 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["hrsh7th/cmp-nvim-lsp"] = {
|
2022-01-29 15:33:59 +01:00
|
|
|
after = "cmp-nvim-lua",
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-27 03:14:58 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["hrsh7th/cmp-buffer"] = {
|
2022-01-26 15:47:44 +01:00
|
|
|
after = "cmp-nvim-lsp",
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-08-27 03:14:58 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["hrsh7th/cmp-path"] = {
|
2022-01-29 15:33:59 +01:00
|
|
|
after = "cmp-buffer",
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- misc plugins
|
2022-04-27 17:42:28 +02:00
|
|
|
["windwp/nvim-autopairs"] = {
|
|
|
|
after = "nvim-cmp",
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").autopairs()
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-05-12 19:23:35 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["goolord/alpha-nvim"] = {
|
|
|
|
disable = true,
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.alpha"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-06-26 04:10:23 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["numToStr/Comment.nvim"] = {
|
2021-12-11 17:53:09 +01:00
|
|
|
module = "Comment",
|
2022-04-30 08:13:34 +02:00
|
|
|
keys = { "gc", "gb" },
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").comment()
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-06-24 19:21:39 +02:00
|
|
|
|
2021-08-22 09:49:15 +02:00
|
|
|
-- file managing , picker etc
|
2022-04-27 17:42:28 +02:00
|
|
|
["kyazdani42/nvim-tree.lua"] = {
|
2022-05-24 19:31:35 +02:00
|
|
|
ft = "alpha",
|
2022-04-27 17:42:28 +02:00
|
|
|
cmd = { "NvimTreeToggle", "NvimTreeFocus" },
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.nvimtree"
|
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
2021-06-26 04:22:48 +02:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
["nvim-telescope/telescope.nvim"] = {
|
2021-08-22 09:45:25 +02:00
|
|
|
cmd = "Telescope",
|
2022-05-12 14:56:01 +02:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.telescope"
|
|
|
|
end,
|
|
|
|
},
|
2022-04-27 17:42:28 +02:00
|
|
|
|
2022-05-12 14:56:01 +02:00
|
|
|
["folke/which-key.nvim"] = {
|
|
|
|
opt = true,
|
2021-08-22 09:45:25 +02:00
|
|
|
setup = function()
|
2022-05-12 14:56:01 +02:00
|
|
|
nvchad.packer_lazy_load "which-key.nvim"
|
2021-08-22 09:45:25 +02:00
|
|
|
end,
|
2022-04-27 17:42:28 +02:00
|
|
|
config = function()
|
2022-05-12 14:56:01 +02:00
|
|
|
require "plugins.configs.whichkey"
|
2022-04-27 17:42:28 +02:00
|
|
|
end,
|
2022-01-30 08:21:46 +01:00
|
|
|
},
|
|
|
|
}
|
2022-02-13 08:39:07 +01:00
|
|
|
|
2022-05-23 09:24:03 +02:00
|
|
|
require("core.packer").run(plugins)
|