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