nvchad/lua/pluginList.lua

212 lines
5.4 KiB
Lua
Raw Normal View History

2021-04-26 04:14:51 -04:00
local packer = require("packer")
local use = packer.use
2021-07-08 23:44:04 -04:00
packer.init {
display = {
open_fn = function()
return require("packer.util").float {border = "single"}
end
2021-07-09 00:55:26 -04:00
},
git = {
2021-07-10 09:36:41 -04:00
clone_timeout = 600 -- Timeout, in seconds, for git clones
}
2021-07-08 23:44:04 -04:00
}
2021-06-14 10:25:41 -04:00
return packer.startup(
2021-03-12 20:23:02 -05:00
function()
2021-06-01 14:28:24 -04:00
use "wbthomason/packer.nvim"
2021-06-25 22:27:09 -04:00
use "akinsho/nvim-bufferline.lua"
2021-07-08 23:44:04 -04:00
use {
"glepnir/galaxyline.nvim",
config = function()
require("plugins.statusline").config()
end
}
2021-06-25 22:27:09 -04:00
2021-04-20 00:15:14 -04:00
-- color related stuff
2021-05-06 00:05:23 -04:00
use "siduck76/nvim-base16.lua"
2021-06-27 11:29:39 -04:00
use {
"norcalli/nvim-colorizer.lua",
2021-06-27 12:28:35 -04:00
event = "BufRead",
2021-06-27 11:29:39 -04:00
config = function()
require("colorizer").setup()
2021-06-27 12:28:35 -04:00
vim.cmd("ColorizerReloadAllBuffers")
2021-06-27 11:29:39 -04:00
end
}
2021-06-01 14:28:24 -04:00
2021-06-25 22:27:09 -04:00
-- language related plugins
2021-06-25 12:06:13 -04:00
use {
"nvim-treesitter/nvim-treesitter",
event = "BufRead",
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.treesitter").config()
2021-06-25 12:06:13 -04:00
end
}
2021-07-10 09:36:41 -04:00
use {
"kabouzeid/nvim-lspinstall",
event = "VimEnter"
}
2021-06-24 13:19:42 -04:00
use {
2021-06-25 22:27:09 -04:00
"neovim/nvim-lspconfig",
event = "BufRead",
2021-06-24 13:19:42 -04:00
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.lspconfig").config()
2021-06-24 13:19:42 -04:00
end
}
use {
"onsails/lspkind-nvim",
event = "BufRead",
config = function()
require("lspkind").init()
end
}
2021-06-25 22:27:09 -04:00
-- load compe in insert mode only
use {
"hrsh7th/nvim-compe",
event = "InsertEnter",
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.compe").config()
end,
wants = {"LuaSnip"},
requires = {
{
"L3MON4D3/LuaSnip",
wants = "friendly-snippets",
event = "InsertCharPre",
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.compe").snippets()
end
},
"rafamadriz/friendly-snippets"
}
2021-06-25 22:27:09 -04:00
}
2021-06-27 12:38:47 -04:00
use {"sbdchd/neoformat", cmd = "Neoformat"}
2021-06-25 22:27:09 -04:00
-- file managing , picker etc
use {
"kyazdani42/nvim-tree.lua",
cmd = "NvimTreeToggle",
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.nvimtree").config()
end
}
use {
"kyazdani42/nvim-web-devicons",
config = function()
require("plugins.icons").config()
2021-06-25 22:27:09 -04:00
end
}
2021-06-25 22:33:29 -04:00
use {
"nvim-telescope/telescope.nvim",
requires = {
{"nvim-lua/popup.nvim"},
{"nvim-lua/plenary.nvim"},
{"nvim-telescope/telescope-fzf-native.nvim", run = "make"},
{"nvim-telescope/telescope-media-files.nvim"}
2021-06-25 22:41:39 -04:00
},
cmd = "Telescope",
2021-06-25 22:41:39 -04:00
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.telescope").config()
2021-06-25 22:41:39 -04:00
end
2021-06-25 22:33:29 -04:00
}
2021-06-25 22:27:09 -04:00
2021-06-25 22:41:39 -04:00
-- git stuff
2021-06-25 22:15:42 -04:00
use {
"lewis6991/gitsigns.nvim",
event = "BufRead",
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.gitsigns").config()
2021-06-25 22:15:42 -04:00
end
}
2021-06-25 22:41:39 -04:00
-- misc plugins
2021-06-25 13:36:17 -04:00
use {
"windwp/nvim-autopairs",
after = "nvim-compe",
2021-06-25 13:36:17 -04:00
config = function()
require("nvim-autopairs").setup()
require("nvim-autopairs.completion.compe").setup(
{
map_cr = true,
map_complete = true -- insert () func completion
}
)
2021-06-25 13:36:17 -04:00
end
}
2021-05-12 13:23:35 -04:00
2021-06-27 12:38:47 -04:00
use {"andymass/vim-matchup", event = "CursorMoved"}
2021-06-25 22:20:10 -04:00
use {
"terrortylor/nvim-comment",
cmd = "CommentToggle",
config = function()
require("nvim_comment").setup()
end
}
2021-06-15 06:25:32 -04:00
2021-06-25 22:10:23 -04:00
use {
"glepnir/dashboard-nvim",
cmd = {
2021-06-25 22:41:39 -04:00
"Dashboard",
2021-06-25 22:10:23 -04:00
"DashboardNewFile",
2021-06-27 12:38:47 -04:00
"DashboardJumpMarks",
"SessionLoad",
"SessionSave"
2021-06-25 22:10:23 -04:00
},
setup = function()
2021-07-08 23:44:04 -04:00
require("plugins.dashboard").config()
2021-06-25 22:10:23 -04:00
end
}
use {"tweekmonster/startuptime.vim", cmd = "StartupTime"}
2021-06-24 13:21:39 -04:00
-- load autosave only if its globally enabled
2021-06-24 13:21:39 -04:00
use {
"Pocco81/AutoSave.nvim",
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.zenmode").autoSave()
end,
2021-06-24 13:21:39 -04:00
cond = function()
return vim.g.auto_save == true
2021-06-24 13:21:39 -04:00
end
}
-- smooth scroll
use {
"karb94/neoscroll.nvim",
event = "WinScrolled",
config = function()
require("neoscroll").setup()
end
}
2021-06-25 22:22:48 -04:00
use {
"Pocco81/TrueZen.nvim",
cmd = {"TZAtaraxis", "TZMinimalist", "TZFocus"},
2021-06-25 22:22:48 -04:00
config = function()
2021-07-08 23:44:04 -04:00
require("plugins.zenmode").config()
2021-06-25 22:22:48 -04:00
end
}
2021-06-25 22:29:33 -04:00
-- use "alvan/vim-closetag" -- for html autoclosing tag
2021-06-25 22:13:35 -04:00
use {
"lukas-reineke/indent-blankline.nvim",
event = "BufRead",
setup = function()
2021-07-08 23:44:04 -04:00
require("utils").blankline()
2021-06-25 22:13:35 -04:00
end
}
2021-07-08 23:44:04 -04:00
end
2021-03-12 20:23:02 -05:00
)