2021-08-19 09:06:01 +02:00
|
|
|
local plugin_status = require("chadrc").plugin_status
|
2021-08-12 13:58:03 +02:00
|
|
|
|
2021-07-17 13:14:52 +02:00
|
|
|
local present, _ = pcall(require, "packerInit")
|
2021-07-19 02:58:28 +02:00
|
|
|
local packer
|
2021-07-17 13:14:52 +02:00
|
|
|
|
|
|
|
if present then
|
2021-08-16 09:49:09 +02:00
|
|
|
packer = require "packer"
|
2021-07-15 17:46:45 +02:00
|
|
|
else
|
2021-08-16 09:49:09 +02:00
|
|
|
return false
|
2021-07-15 17:46:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
local use = packer.use
|
2021-07-09 05:44:04 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
return packer.startup(function()
|
|
|
|
use {
|
|
|
|
"wbthomason/packer.nvim",
|
|
|
|
event = "VimEnter",
|
|
|
|
}
|
2021-06-01 20:28:24 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"jdhao/better-escape.vim",
|
|
|
|
disable = not plugin_status.better_esc,
|
|
|
|
event = "InsertEnter",
|
|
|
|
config = function()
|
|
|
|
require("plugins.others").escape()
|
|
|
|
end,
|
|
|
|
}
|
2021-07-26 11:36:32 +02:00
|
|
|
|
2021-08-17 08:42:33 +02:00
|
|
|
use {
|
|
|
|
"glepnir/galaxyline.nvim",
|
|
|
|
disable = not plugin_status.galaxyline,
|
|
|
|
after = "nvim-web-devicons",
|
|
|
|
config = function()
|
|
|
|
require "plugins.statusline"
|
|
|
|
end,
|
|
|
|
}
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"akinsho/nvim-bufferline.lua",
|
|
|
|
disable = not plugin_status.nvim_bufferline,
|
2021-08-17 08:42:33 +02:00
|
|
|
after = "galaxyline.nvim",
|
2021-08-16 09:49:09 +02:00
|
|
|
config = function()
|
|
|
|
require "plugins.bufferline"
|
|
|
|
end,
|
|
|
|
setup = function()
|
|
|
|
require("mappings").bufferline()
|
|
|
|
end,
|
|
|
|
}
|
2021-07-09 05:44:04 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- color related stuff
|
|
|
|
use {
|
|
|
|
"NvChad/nvim-base16.lua",
|
|
|
|
after = "packer.nvim",
|
|
|
|
config = function()
|
|
|
|
require "theme"
|
|
|
|
end,
|
|
|
|
}
|
2021-06-27 17:29:39 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"norcalli/nvim-colorizer.lua",
|
|
|
|
disable = not plugin_status.nvim_colorizer,
|
|
|
|
event = "BufRead",
|
|
|
|
config = function()
|
|
|
|
require("plugins.others").colorizer()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-01 20:28:24 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- lsp stuff
|
|
|
|
use {
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
event = "BufRead",
|
|
|
|
config = function()
|
|
|
|
require "plugins.treesitter"
|
|
|
|
end,
|
|
|
|
}
|
2021-06-25 18:06:13 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"kabouzeid/nvim-lspinstall",
|
|
|
|
event = "BufRead",
|
|
|
|
}
|
2021-07-10 15:36:41 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
after = "nvim-lspinstall",
|
|
|
|
config = function()
|
|
|
|
require "plugins.lspconfig"
|
|
|
|
end,
|
|
|
|
}
|
2021-06-24 19:19:42 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"onsails/lspkind-nvim",
|
|
|
|
disable = not plugin_status.lspkind,
|
|
|
|
event = "BufEnter",
|
|
|
|
config = function()
|
|
|
|
require("plugins.others").lspkind()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:01:15 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"ray-x/lsp_signature.nvim",
|
|
|
|
disable = not plugin_status.lspsignature,
|
|
|
|
after = "nvim-lspconfig",
|
|
|
|
config = function()
|
|
|
|
require("plugins.others").signature()
|
|
|
|
end,
|
|
|
|
}
|
2021-08-07 07:55:23 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- load compe in insert mode only
|
|
|
|
use {
|
|
|
|
"hrsh7th/nvim-compe",
|
|
|
|
event = "InsertEnter",
|
|
|
|
config = function()
|
|
|
|
require "plugins.compe"
|
|
|
|
end,
|
|
|
|
wants = "LuaSnip",
|
|
|
|
requires = {
|
|
|
|
{
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
wants = "friendly-snippets",
|
|
|
|
event = "InsertCharPre",
|
2021-06-26 04:27:09 +02:00
|
|
|
config = function()
|
2021-08-16 09:49:09 +02:00
|
|
|
require "plugins.luasnip"
|
2021-06-26 14:50:25 +02:00
|
|
|
end,
|
2021-08-16 09:49:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"rafamadriz/friendly-snippets",
|
|
|
|
event = "InsertCharPre",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2021-06-26 04:27:09 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"sbdchd/neoformat",
|
|
|
|
disable = not plugin_status.neoformat,
|
|
|
|
cmd = "Neoformat",
|
|
|
|
setup = function()
|
|
|
|
require("mappings").neoformat()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:01:15 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- file managing , picker etc
|
|
|
|
use {
|
|
|
|
"kyazdani42/nvim-tree.lua",
|
|
|
|
cmd = "NvimTreeToggle",
|
|
|
|
config = function()
|
|
|
|
require "plugins.nvimtree"
|
|
|
|
end,
|
|
|
|
setup = function()
|
|
|
|
require("mappings").nvimtree()
|
|
|
|
end,
|
|
|
|
}
|
2021-07-09 05:44:04 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"kyazdani42/nvim-web-devicons",
|
|
|
|
after = "nvim-base16.lua",
|
|
|
|
config = function()
|
|
|
|
require "plugins.icons"
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:27:09 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"nvim-lua/plenary.nvim",
|
2021-08-17 08:42:33 +02:00
|
|
|
after = "nvim-bufferline.lua",
|
2021-08-16 09:49:09 +02:00
|
|
|
}
|
|
|
|
use {
|
|
|
|
"nvim-lua/popup.nvim",
|
|
|
|
after = "plenary.nvim",
|
|
|
|
}
|
2021-07-18 12:36:33 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"nvim-telescope/telescope.nvim",
|
2021-08-16 18:48:08 +02:00
|
|
|
after = "plenary.nvim",
|
2021-08-16 09:49:09 +02:00
|
|
|
requires = {
|
|
|
|
{
|
|
|
|
"nvim-telescope/telescope-fzf-native.nvim",
|
|
|
|
run = "make",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nvim-telescope/telescope-media-files.nvim",
|
|
|
|
disable = not plugin_status.telescope_media,
|
2021-08-12 13:58:03 +02:00
|
|
|
setup = function()
|
2021-08-16 09:49:09 +02:00
|
|
|
require("mappings").telescope_media()
|
|
|
|
end,
|
|
|
|
},
|
2021-08-16 18:48:08 +02:00
|
|
|
{
|
|
|
|
"sudormrfbin/cheatsheet.nvim",
|
|
|
|
disable = not plugin_status.cheatsheet,
|
2021-08-18 16:01:02 +02:00
|
|
|
event = "VimEnter",
|
2021-08-16 18:48:08 +02:00
|
|
|
after = "telescope.nvim",
|
|
|
|
config = function()
|
|
|
|
require "plugins.chadsheet"
|
|
|
|
end,
|
|
|
|
setup = function()
|
|
|
|
require("mappings").chadsheet()
|
|
|
|
end,
|
|
|
|
},
|
2021-08-16 09:49:09 +02:00
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
require "plugins.telescope"
|
|
|
|
end,
|
|
|
|
setup = function()
|
|
|
|
require("mappings").telescope()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:27:09 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- git stuff
|
|
|
|
use {
|
|
|
|
"lewis6991/gitsigns.nvim",
|
|
|
|
disable = not plugin_status.gitsigns,
|
|
|
|
after = "plenary.nvim",
|
|
|
|
config = function()
|
|
|
|
require "plugins.gitsigns"
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:15:42 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- misc plugins
|
|
|
|
use {
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
after = "nvim-compe",
|
|
|
|
config = function()
|
|
|
|
require "plugins.autopairs"
|
|
|
|
end,
|
|
|
|
}
|
2021-05-12 19:23:35 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"andymass/vim-matchup",
|
|
|
|
disable = not plugin_status.vim_matchup,
|
|
|
|
event = "CursorMoved",
|
|
|
|
}
|
2021-06-26 04:24:10 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"terrortylor/nvim-comment",
|
|
|
|
disable = not plugin_status.nvim_comment,
|
|
|
|
cmd = "CommentToggle",
|
|
|
|
config = function()
|
|
|
|
require("plugins.others").comment()
|
|
|
|
end,
|
|
|
|
setup = function()
|
|
|
|
require("mappings").comment_nvim()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-15 12:25:32 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"glepnir/dashboard-nvim",
|
|
|
|
disable = not plugin_status.dashboard_nvim,
|
|
|
|
cmd = {
|
|
|
|
"Dashboard",
|
|
|
|
"DashboardNewFile",
|
|
|
|
"DashboardJumpMarks",
|
|
|
|
"SessionLoad",
|
|
|
|
"SessionSave",
|
|
|
|
},
|
|
|
|
setup = function()
|
|
|
|
require "plugins.dashboard"
|
|
|
|
require("mappings").dashboard()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:10:23 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- load autosave only if its globally enabled
|
|
|
|
use {
|
|
|
|
disable = not plugin_status.autosave_nvim,
|
|
|
|
"Pocco81/AutoSave.nvim",
|
|
|
|
config = function()
|
|
|
|
require "plugins.autosave"
|
|
|
|
end,
|
|
|
|
cond = function()
|
|
|
|
return vim.g.auto_save == true
|
|
|
|
end,
|
|
|
|
}
|
2021-06-24 19:21:39 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- smooth scroll
|
|
|
|
use {
|
|
|
|
"karb94/neoscroll.nvim",
|
|
|
|
disable = not plugin_status.neoscroll_nvim,
|
|
|
|
event = "WinScrolled",
|
|
|
|
config = function()
|
|
|
|
require("plugins.others").neoscroll()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:22:48 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"Pocco81/TrueZen.nvim",
|
|
|
|
disable = not plugin_status.truezen_nvim,
|
|
|
|
cmd = {
|
|
|
|
"TZAtaraxis",
|
|
|
|
"TZMinimalist",
|
|
|
|
"TZFocus",
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
require "plugins.zenmode"
|
|
|
|
end,
|
|
|
|
setup = function()
|
|
|
|
require("mappings").truezen()
|
|
|
|
end,
|
|
|
|
}
|
2021-06-26 04:22:48 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
-- use "alvan/vim-closetag" -- for html autoclosing tag
|
2021-06-26 04:13:35 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
|
|
disable = not plugin_status.blankline,
|
|
|
|
event = "BufRead",
|
|
|
|
setup = function()
|
|
|
|
require("plugins.others").blankline()
|
|
|
|
end,
|
|
|
|
}
|
2021-07-23 19:22:09 +02:00
|
|
|
|
2021-08-16 09:49:09 +02:00
|
|
|
use {
|
|
|
|
"tpope/vim-fugitive",
|
|
|
|
disable = not plugin_status.vim_fugitive,
|
|
|
|
cmd = {
|
|
|
|
"Git",
|
|
|
|
},
|
|
|
|
setup = function()
|
|
|
|
require("mappings").fugitive()
|
|
|
|
end,
|
|
|
|
}
|
|
|
|
end)
|