2022-06-14 12:06:27 +00:00
|
|
|
vim.cmd "packadd packer.nvim"
|
|
|
|
|
2022-01-30 07:21:46 +00:00
|
|
|
local plugins = {
|
2022-05-23 07:24:03 +00:00
|
|
|
|
2022-09-29 18:49:40 +00:00
|
|
|
["nvim-lua/plenary.nvim"] = {
|
|
|
|
module = "plenary",
|
|
|
|
module_pattern = "plenary*",
|
|
|
|
},
|
2022-08-06 03:35:20 +00:00
|
|
|
["wbthomason/packer.nvim"] = {
|
2022-08-07 07:28:16 +00:00
|
|
|
cmd = require("core.lazy_load").packer_cmds,
|
2022-08-06 03:35:20 +00:00
|
|
|
config = function()
|
|
|
|
require "plugins"
|
2022-08-07 05:27:58 +00:00
|
|
|
end,
|
2022-08-06 03:35:20 +00:00
|
|
|
},
|
2022-08-22 13:50:16 +00:00
|
|
|
["NvChad/extensions"] = { module = { "telescope", "nvchad" }, lock = true },
|
2022-07-22 16:00:00 +00:00
|
|
|
|
|
|
|
["NvChad/base46"] = {
|
2022-10-25 00:13:21 +00:00
|
|
|
lock = false,
|
2022-07-22 16:00:00 +00:00
|
|
|
config = function()
|
|
|
|
local ok, base46 = pcall(require, "base46")
|
|
|
|
|
|
|
|
if ok then
|
|
|
|
base46.load_theme()
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["NvChad/ui"] = {
|
2022-10-10 22:12:27 +00:00
|
|
|
lock = true,
|
2022-12-05 13:44:06 +00:00
|
|
|
disable = false,
|
2022-07-22 16:00:00 +00:00
|
|
|
after = "base46",
|
|
|
|
config = function()
|
2022-07-24 17:00:09 +00:00
|
|
|
require("plugins.configs.others").nvchad_ui()
|
2022-07-22 16:00:00 +00:00
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
2022-10-25 00:13:21 +00:00
|
|
|
["NvChad/nvterm"] = {
|
|
|
|
module = "nvterm",
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.nvterm"
|
|
|
|
end,
|
|
|
|
setup = function()
|
|
|
|
require("core.utils").load_mappings "nvterm"
|
|
|
|
end,
|
|
|
|
},
|
2022-07-22 16:00:00 +00:00
|
|
|
|
|
|
|
["kyazdani42/nvim-web-devicons"] = {
|
2022-08-04 14:32:16 +00:00
|
|
|
after = "ui",
|
2022-07-22 16:00:00 +00:00
|
|
|
module = "nvim-web-devicons",
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").devicons()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["lukas-reineke/indent-blankline.nvim"] = {
|
2022-08-22 13:50:16 +00:00
|
|
|
lock = true,
|
2022-07-22 16:00:00 +00:00
|
|
|
opt = true,
|
|
|
|
setup = function()
|
|
|
|
require("core.lazy_load").on_file_open "indent-blankline.nvim"
|
2022-08-04 14:32:16 +00:00
|
|
|
require("core.utils").load_mappings "blankline"
|
2022-07-22 16:00:00 +00:00
|
|
|
end,
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").blankline()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["NvChad/nvim-colorizer.lua"] = {
|
2022-08-22 13:50:16 +00:00
|
|
|
lock = true,
|
2022-07-22 16:00:00 +00:00
|
|
|
opt = true,
|
|
|
|
setup = function()
|
2022-07-24 10:17:46 +00:00
|
|
|
require("core.lazy_load").on_file_open "nvim-colorizer.lua"
|
2022-07-22 16:00:00 +00:00
|
|
|
end,
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").colorizer()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["nvim-treesitter/nvim-treesitter"] = {
|
|
|
|
module = "nvim-treesitter",
|
|
|
|
setup = function()
|
|
|
|
require("core.lazy_load").on_file_open "nvim-treesitter"
|
|
|
|
end,
|
|
|
|
cmd = require("core.lazy_load").treesitter_cmds,
|
|
|
|
run = ":TSUpdate",
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.treesitter"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
-- lsp stuff
|
|
|
|
|
2022-07-25 13:49:33 +00:00
|
|
|
["williamboman/mason.nvim"] = {
|
|
|
|
cmd = require("core.lazy_load").mason_cmds,
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.mason"
|
2022-07-22 16:00:00 +00:00
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["neovim/nvim-lspconfig"] = {
|
2022-07-25 13:49:33 +00:00
|
|
|
opt = true,
|
|
|
|
setup = function()
|
|
|
|
require("core.lazy_load").on_file_open "nvim-lspconfig"
|
|
|
|
end,
|
2022-08-29 14:46:20 +00:00
|
|
|
-- config = function()
|
|
|
|
-- require "plugins.configs.lspconfig"
|
|
|
|
-- end,
|
2022-07-22 16:00:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
-- load luasnips + cmp related in insert mode only
|
|
|
|
|
|
|
|
["rafamadriz/friendly-snippets"] = {
|
2022-07-29 08:27:08 +00:00
|
|
|
module = { "cmp", "cmp_nvim_lsp" },
|
2022-07-22 16:00:00 +00:00
|
|
|
event = "InsertEnter",
|
|
|
|
},
|
|
|
|
|
|
|
|
["hrsh7th/nvim-cmp"] = {
|
|
|
|
after = "friendly-snippets",
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.cmp"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["L3MON4D3/LuaSnip"] = {
|
|
|
|
wants = "friendly-snippets",
|
|
|
|
after = "nvim-cmp",
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").luasnip()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["saadparwaiz1/cmp_luasnip"] = {
|
|
|
|
after = "LuaSnip",
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
["hrsh7th/cmp-nvim-lsp"] = {
|
2022-10-25 00:13:21 +00:00
|
|
|
after = {"nvim-cmp"},
|
2022-07-22 16:00:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
["hrsh7th/cmp-buffer"] = {
|
|
|
|
after = "cmp-nvim-lsp",
|
|
|
|
},
|
|
|
|
|
|
|
|
["hrsh7th/cmp-path"] = {
|
|
|
|
after = "cmp-buffer",
|
|
|
|
},
|
|
|
|
|
|
|
|
-- misc plugins
|
|
|
|
["windwp/nvim-autopairs"] = {
|
|
|
|
after = "nvim-cmp",
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").autopairs()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["goolord/alpha-nvim"] = {
|
|
|
|
after = "base46",
|
|
|
|
disable = true,
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.alpha"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
["numToStr/Comment.nvim"] = {
|
|
|
|
module = "Comment",
|
|
|
|
keys = { "gc", "gb" },
|
|
|
|
config = function()
|
|
|
|
require("plugins.configs.others").comment()
|
|
|
|
end,
|
2022-08-04 14:32:16 +00:00
|
|
|
setup = function()
|
|
|
|
require("core.utils").load_mappings "comment"
|
|
|
|
end,
|
2022-07-22 16:00:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
-- file managing , picker etc
|
|
|
|
["kyazdani42/nvim-tree.lua"] = {
|
2023-02-10 19:59:41 +00:00
|
|
|
commit = "9e87ee2",
|
2022-07-22 16:00:00 +00:00
|
|
|
ft = "alpha",
|
|
|
|
cmd = { "NvimTreeToggle", "NvimTreeFocus" },
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.nvimtree"
|
|
|
|
end,
|
2022-08-04 14:32:16 +00:00
|
|
|
setup = function()
|
|
|
|
require("core.utils").load_mappings "nvimtree"
|
|
|
|
end,
|
2022-07-22 16:00:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
["nvim-telescope/telescope.nvim"] = {
|
|
|
|
cmd = "Telescope",
|
2023-02-07 18:55:59 +00:00
|
|
|
module = {"telescope"},
|
2022-07-22 16:00:00 +00:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.telescope"
|
|
|
|
end,
|
2022-08-04 14:32:16 +00:00
|
|
|
setup = function()
|
|
|
|
require("core.utils").load_mappings "telescope"
|
|
|
|
end,
|
2022-07-22 16:00:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
-- Only load whichkey after all the gui
|
|
|
|
["folke/which-key.nvim"] = {
|
2022-08-07 04:40:50 +00:00
|
|
|
disable = true,
|
2022-07-22 16:00:00 +00:00
|
|
|
module = "which-key",
|
2022-08-29 14:46:20 +00:00
|
|
|
keys = {"<leader>"},
|
2022-07-22 16:00:00 +00:00
|
|
|
config = function()
|
|
|
|
require "plugins.configs.whichkey"
|
|
|
|
end,
|
2022-08-04 14:32:16 +00:00
|
|
|
setup = function()
|
|
|
|
require("core.utils").load_mappings "whichkey"
|
|
|
|
end,
|
2022-07-22 16:00:00 +00:00
|
|
|
},
|
2022-08-06 03:35:20 +00:00
|
|
|
|
|
|
|
-- Speed up deffered plugins
|
2022-08-12 06:19:12 +00:00
|
|
|
["lewis6991/impatient.nvim"] = {},
|
2022-01-30 07:21:46 +00:00
|
|
|
}
|
2022-02-13 07:39:07 +00:00
|
|
|
|
2022-05-23 07:24:03 +00:00
|
|
|
require("core.packer").run(plugins)
|