my-nvim-lua/lua/pluginList.lua
2021-06-26 08:03:29 +05:30

176 lines
4.5 KiB
Lua

local packer = require("packer")
local use = packer.use
return packer.startup(
function()
use "wbthomason/packer.nvim"
use "akinsho/nvim-bufferline.lua"
use "glepnir/galaxyline.nvim"
-- color related stuff
use "siduck76/nvim-base16.lua"
use "norcalli/nvim-colorizer.lua"
-- language related plugins
use {
"nvim-treesitter/nvim-treesitter",
event = "BufRead",
config = function()
require("treesitter-nvim").config()
end
}
use {
"neovim/nvim-lspconfig",
event = "BufRead",
config = function()
require("nvim-lspconfig").config()
end
}
use "kabouzeid/nvim-lspinstall"
use {
"onsails/lspkind-nvim",
event = "BufRead",
config = function()
require("lspkind").init()
end
}
-- load compe in insert mode only
use {
"hrsh7th/nvim-compe",
event = "InsertEnter",
config = function()
require("compe-completion").config()
end
}
use {
"sbdchd/neoformat",
cmd = "Neoformat"
}
-- snippet support
use {
"hrsh7th/vim-vsnip",
event = "InsertCharPre"
}
use "rafamadriz/friendly-snippets"
-- file managing , picker etc
use {
"kyazdani42/nvim-tree.lua",
cmd = "NvimTreeToggle",
config = function()
require("nvimTree").config()
end
}
use "kyazdani42/nvim-web-devicons"
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"}
}
}
-- misc plugins
use {
"lewis6991/gitsigns.nvim",
event = "BufRead",
config = function()
require("gitsigns-nvim").config()
end
}
use {
"windwp/nvim-autopairs",
event = "InsertEnter",
config = function()
require("nvim-autopairs").setup()
end
}
use {
"andymass/vim-matchup",
event = "CursorMoved"
}
use {
"terrortylor/nvim-comment",
cmd = "CommentToggle",
config = function()
require("nvim_comment").setup()
end
}
use {
"glepnir/dashboard-nvim",
cmd = {
"Telescope live_grep",
"DashboardNewFile",
"DashboardJumpMarks"
},
setup = function()
require("dashboard").config()
end
}
use {"tweekmonster/startuptime.vim", cmd = "StartupTime"}
-- load autosave plugin only if its globally enabled
use {
"907th/vim-auto-save",
cond = function()
return vim.g.auto_save == 1
end
}
-- smooth scroll
use {
"karb94/neoscroll.nvim",
event = "WinScrolled",
config = function()
require("neoscroll").setup()
end
}
use {
"kdav5758/TrueZen.nvim",
cmd = {"TZAtaraxis", "TZMinimalist"},
config = function()
require("zenmode").config()
end
}
-- use "alvan/vim-closetag" -- for html autoclosing tag
use {
"lukas-reineke/indent-blankline.nvim",
branch = "lua",
event = "BufRead",
setup = function()
vim.g.indentLine_enabled = 1
vim.g.indent_blankline_char = ""
vim.g.indent_blankline_filetype_exclude = {"help", "terminal", "dashboard"}
vim.g.indent_blankline_buftype_exclude = {"terminal"}
vim.g.indent_blankline_show_trailing_blankline_indent = false
vim.g.indent_blankline_show_first_indent_level = false
end
}
end,
{
display = {
border = {"", "", "", "", "", "", "", ""}
}
}
)