2022-06-14 08:06:27 -04:00
|
|
|
vim.cmd "packadd packer.nvim"
|
|
|
|
|
2022-01-30 02:21:46 -05:00
|
|
|
local plugins = {
|
2022-05-23 03:24:03 -04:00
|
|
|
|
2022-06-18 06:55:37 -04:00
|
|
|
["nvim-lua/plenary.nvim"] = { module = "plenary" },
|
2022-05-23 03:24:03 -04:00
|
|
|
["wbthomason/packer.nvim"] = {},
|
2022-06-24 09:54:59 -04:00
|
|
|
["NvChad/extensions"] = { module = { "telescope", "nvchad" } },
|
2022-03-20 17:22:16 -04:00
|
|
|
|
2022-05-03 02:43:32 -04:00
|
|
|
["NvChad/base46"] = {
|
2021-08-22 03:49:15 -04:00
|
|
|
config = function()
|
2022-05-06 10:44:57 -04:00
|
|
|
local ok, base46 = pcall(require, "base46")
|
2022-05-02 14:43:38 -04:00
|
|
|
|
|
|
|
if ok then
|
2022-05-06 10:44:57 -04:00
|
|
|
base46.load_theme()
|
2022-05-02 14:43:38 -04:00
|
|
|
end
|
2021-08-22 03:49:15 -04:00
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-22 03:49:15 -04:00
|
|
|
|
2022-07-15 00:07:12 -04:00
|
|
|
["NvChad/ui"] = {
|
|
|
|
after = "base46",
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.nvchad_ui").load_ui_plugins()
|
|
|
|
end,
|
|
|
|
},
|
2022-07-14 08:12:00 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["NvChad/nvterm"] = {
|
2022-06-05 09:41:26 -04:00
|
|
|
module = "nvterm",
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.nvterm"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["kyazdani42/nvim-web-devicons"] = {
|
2022-06-14 08:06:27 -04:00
|
|
|
module = "nvim-web-devicons",
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
2022-06-14 08:06:27 -04:00
|
|
|
require("plugins.configs.others").devicons()
|
2022-06-02 13:59:15 -04:00
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["lukas-reineke/indent-blankline.nvim"] = {
|
2022-06-14 08:06:27 -04:00
|
|
|
opt = true,
|
2022-06-18 00:27:17 -04:00
|
|
|
setup = function()
|
|
|
|
require("core.lazy_load").on_file_open "indent-blankline.nvim"
|
|
|
|
end,
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").blankline()
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-06-27 11:29:39 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["NvChad/nvim-colorizer.lua"] = {
|
2022-06-14 08:06:27 -04:00
|
|
|
opt = true,
|
2022-06-14 10:20:34 -04:00
|
|
|
setup = function()
|
|
|
|
require("core.lazy_load").colorizer()
|
|
|
|
end,
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").colorizer()
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-06-01 14:28:24 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["nvim-treesitter/nvim-treesitter"] = {
|
2022-06-14 08:06:27 -04:00
|
|
|
module = "nvim-treesitter",
|
2022-06-14 10:20:34 -04:00
|
|
|
setup = function()
|
2022-06-18 00:27:17 -04:00
|
|
|
require("core.lazy_load").on_file_open "nvim-treesitter"
|
2022-06-14 10:20:34 -04:00
|
|
|
end,
|
2022-06-19 04:13:11 -04:00
|
|
|
cmd = require("core.lazy_load").treesitter_cmds,
|
2022-02-22 23:09:21 -05:00
|
|
|
run = ":TSUpdate",
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.treesitter"
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-06-25 12:06:13 -04:00
|
|
|
|
2021-08-26 05:40:26 -04:00
|
|
|
-- git stuff
|
2022-04-27 11:42:28 -04:00
|
|
|
["lewis6991/gitsigns.nvim"] = {
|
2022-07-13 00:21:20 -04:00
|
|
|
ft = "gitcommit",
|
2022-06-14 10:20:34 -04:00
|
|
|
setup = function()
|
|
|
|
require("core.lazy_load").gitsigns()
|
|
|
|
end,
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").gitsigns()
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-26 05:40:26 -04:00
|
|
|
|
2021-08-26 22:26:44 -04:00
|
|
|
-- lsp stuff
|
2021-09-10 06:10:54 -04:00
|
|
|
|
2022-05-03 21:25:36 -04:00
|
|
|
["williamboman/nvim-lsp-installer"] = {
|
2022-04-30 07:39:57 -04:00
|
|
|
opt = true,
|
2022-06-19 04:13:11 -04:00
|
|
|
cmd = require("core.lazy_load").lsp_cmds,
|
2022-06-14 10:20:34 -04:00
|
|
|
setup = function()
|
2022-06-18 00:27:17 -04:00
|
|
|
require("core.lazy_load").on_file_open "nvim-lsp-installer"
|
2022-06-14 10:20:34 -04:00
|
|
|
end,
|
2022-05-03 21:25:36 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
["neovim/nvim-lspconfig"] = {
|
|
|
|
after = "nvim-lsp-installer",
|
|
|
|
module = "lspconfig",
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
2022-05-03 21:25:36 -04:00
|
|
|
require "plugins.configs.lsp_installer"
|
2022-04-27 11:42:28 -04:00
|
|
|
require "plugins.configs.lspconfig"
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-22 03:49:15 -04:00
|
|
|
|
2021-08-26 21:14:58 -04:00
|
|
|
-- load luasnips + cmp related in insert mode only
|
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["rafamadriz/friendly-snippets"] = {
|
2022-01-29 09:33:59 -05:00
|
|
|
module = "cmp_nvim_lsp",
|
2022-03-01 02:13:34 -05:00
|
|
|
event = "InsertEnter",
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2022-01-29 09:33:59 -05:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["hrsh7th/nvim-cmp"] = {
|
2022-02-11 21:01:23 -05:00
|
|
|
after = "friendly-snippets",
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.cmp"
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-26 21:14:58 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["L3MON4D3/LuaSnip"] = {
|
2021-08-26 22:41:46 -04:00
|
|
|
wants = "friendly-snippets",
|
2022-01-29 09:33:59 -05:00
|
|
|
after = "nvim-cmp",
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").luasnip()
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-26 21:14:58 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["saadparwaiz1/cmp_luasnip"] = {
|
|
|
|
after = "LuaSnip",
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-26 21:14:58 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["hrsh7th/cmp-nvim-lua"] = {
|
2022-02-11 21:01:23 -05:00
|
|
|
after = "cmp_luasnip",
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-26 21:14:58 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["hrsh7th/cmp-nvim-lsp"] = {
|
2022-01-29 09:33:59 -05:00
|
|
|
after = "cmp-nvim-lua",
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-26 21:14:58 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["hrsh7th/cmp-buffer"] = {
|
2022-01-26 09:47:44 -05:00
|
|
|
after = "cmp-nvim-lsp",
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-08-26 21:14:58 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["hrsh7th/cmp-path"] = {
|
2022-01-29 09:33:59 -05:00
|
|
|
after = "cmp-buffer",
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
|
|
|
|
2021-08-16 03:49:09 -04:00
|
|
|
-- misc plugins
|
2022-04-27 11:42:28 -04:00
|
|
|
["windwp/nvim-autopairs"] = {
|
|
|
|
after = "nvim-cmp",
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").autopairs()
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-05-12 13:23:35 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["goolord/alpha-nvim"] = {
|
2022-06-14 13:26:57 -04:00
|
|
|
after = "base46",
|
2022-04-27 11:42:28 -04:00
|
|
|
disable = true,
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.alpha"
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-06-25 22:10:23 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["numToStr/Comment.nvim"] = {
|
2021-12-11 11:53:09 -05:00
|
|
|
module = "Comment",
|
2022-04-30 02:13:34 -04:00
|
|
|
keys = { "gc", "gb" },
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").comment()
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-06-24 13:21:39 -04:00
|
|
|
|
2021-08-22 03:49:15 -04:00
|
|
|
-- file managing , picker etc
|
2022-04-27 11:42:28 -04:00
|
|
|
["kyazdani42/nvim-tree.lua"] = {
|
2022-05-24 13:31:35 -04:00
|
|
|
ft = "alpha",
|
2022-04-27 11:42:28 -04:00
|
|
|
cmd = { "NvimTreeToggle", "NvimTreeFocus" },
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.nvimtree"
|
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
2021-06-25 22:22:48 -04:00
|
|
|
|
2022-04-27 11:42:28 -04:00
|
|
|
["nvim-telescope/telescope.nvim"] = {
|
2021-08-22 03:45:25 -04:00
|
|
|
cmd = "Telescope",
|
2022-05-12 08:56:01 -04:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.telescope"
|
|
|
|
end,
|
|
|
|
},
|
2022-04-27 11:42:28 -04:00
|
|
|
|
2022-06-14 08:06:27 -04:00
|
|
|
-- Only load whichkey after all the gui
|
2022-05-12 08:56:01 -04:00
|
|
|
["folke/which-key.nvim"] = {
|
2022-06-14 08:06:27 -04:00
|
|
|
module = "which-key",
|
2022-04-27 11:42:28 -04:00
|
|
|
config = function()
|
2022-05-29 05:38:53 -04:00
|
|
|
require "plugins.configs.whichkey"
|
2022-04-27 11:42:28 -04:00
|
|
|
end,
|
2022-01-30 02:21:46 -05:00
|
|
|
},
|
|
|
|
}
|
2022-02-13 02:39:07 -05:00
|
|
|
|
2022-05-23 03:24:03 -04:00
|
|
|
require("core.packer").run(plugins)
|