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