2022-05-12 19:42:09 +02:00
|
|
|
local fn = vim.fn
|
|
|
|
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
|
|
|
local packer_bootstrap = false
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
2022-06-20 19:57:01 +02:00
|
|
|
packer_bootstrap = fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim',
|
|
|
|
install_path })
|
2022-05-12 19:42:09 +02:00
|
|
|
vim.cmd 'packadd packer.nvim'
|
|
|
|
end
|
|
|
|
|
|
|
|
local packer = require("packer")
|
|
|
|
packer.init {
|
|
|
|
display = {
|
|
|
|
open_fn = function()
|
|
|
|
return require("packer.util").float { border = "rounded" }
|
|
|
|
end,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return packer.startup(function(use)
|
2022-04-25 16:23:14 +02:00
|
|
|
-- Let packer manage itself
|
|
|
|
use "wbthomason/packer.nvim"
|
|
|
|
use 'lewis6991/impatient.nvim'
|
2022-01-26 20:42:58 +01:00
|
|
|
|
2022-04-25 16:23:14 +02:00
|
|
|
-- General Helper Functions
|
|
|
|
use "nvim-lua/plenary.nvim"
|
2022-04-23 03:41:04 +02:00
|
|
|
|
2022-04-25 16:23:14 +02:00
|
|
|
-- Theming Section
|
2022-05-03 19:28:52 +02:00
|
|
|
use "rktjmp/fwatch.nvim" -- Used to check dark/light theme
|
2022-04-25 16:23:14 +02:00
|
|
|
use "EdenEast/nightfox.nvim"
|
|
|
|
use "nvim-lualine/lualine.nvim"
|
2022-01-26 20:42:58 +01:00
|
|
|
|
2022-04-25 16:23:14 +02:00
|
|
|
-- Layout Plugins
|
2022-05-03 19:28:52 +02:00
|
|
|
use "dstein64/nvim-scrollview" -- ScrollBars
|
|
|
|
use "akinsho/nvim-toggleterm.lua"
|
2022-05-03 11:40:07 +02:00
|
|
|
use { "folke/zen-mode.nvim", config = function() require("zen-mode").setup {} end }
|
|
|
|
use "rcarriga/nvim-notify"
|
2022-04-25 16:23:14 +02:00
|
|
|
use "kyazdani42/nvim-web-devicons"
|
|
|
|
use "kyazdani42/nvim-tree.lua"
|
|
|
|
use "nvim-lua/popup.nvim"
|
|
|
|
use 'goolord/alpha-nvim'
|
|
|
|
use { "terrortylor/nvim-comment", config = function() require('nvim_comment').setup() end }
|
2022-05-12 19:42:09 +02:00
|
|
|
use { "windwp/nvim-autopairs", config = function() require('nvim-autopairs').setup() end }
|
|
|
|
use "gfeiyou/command-center.nvim"
|
2022-01-26 20:42:58 +01:00
|
|
|
|
2022-04-25 16:23:14 +02:00
|
|
|
-- Code Navigation
|
|
|
|
use "junegunn/fzf"
|
|
|
|
use "nvim-telescope/telescope.nvim"
|
2022-01-26 20:42:58 +01:00
|
|
|
|
2022-04-25 16:23:14 +02:00
|
|
|
-- Lsp Errors
|
|
|
|
use "folke/lsp-colors.nvim"
|
|
|
|
use "kosayoda/nvim-lightbulb"
|
|
|
|
use {
|
|
|
|
"folke/trouble.nvim",
|
|
|
|
requires = "kyazdani42/nvim-web-devicons",
|
|
|
|
config = function()
|
|
|
|
require("trouble").setup {}
|
|
|
|
end
|
|
|
|
}
|
2022-01-26 20:42:58 +01:00
|
|
|
|
2022-04-25 16:23:14 +02:00
|
|
|
-- Syntax / Autocomplete
|
2022-05-03 11:40:07 +02:00
|
|
|
use "tpope/vim-surround"
|
2022-04-25 16:23:14 +02:00
|
|
|
use "neovim/nvim-lspconfig"
|
|
|
|
use "hrsh7th/nvim-cmp"
|
2022-07-26 20:33:13 +02:00
|
|
|
use "onsails/lspkind.nvim"
|
2022-07-26 19:55:09 +02:00
|
|
|
use { 'tzachar/cmp-tabnine', run = './install.sh', requires = 'hrsh7th/nvim-cmp' }
|
2022-04-25 16:23:14 +02:00
|
|
|
use "hrsh7th/cmp-nvim-lsp"
|
|
|
|
use "hrsh7th/cmp-path"
|
|
|
|
use "hrsh7th/cmp-calc"
|
|
|
|
use "hrsh7th/cmp-buffer"
|
|
|
|
use "hrsh7th/cmp-cmdline"
|
|
|
|
use "rafamadriz/friendly-snippets"
|
|
|
|
use "L3MON4D3/LuaSnip"
|
|
|
|
use "saadparwaiz1/cmp_luasnip"
|
|
|
|
use "williamboman/nvim-lsp-installer"
|
2022-05-12 19:42:09 +02:00
|
|
|
use { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" }
|
2022-01-26 20:42:58 +01:00
|
|
|
|
2022-05-13 19:19:05 +02:00
|
|
|
-- More IDE like features
|
2022-05-03 19:28:52 +02:00
|
|
|
use {
|
|
|
|
'rmagatti/session-lens',
|
|
|
|
requires = { 'rmagatti/auto-session', 'nvim-telescope/telescope.nvim' },
|
|
|
|
config = function()
|
|
|
|
require('session-lens').setup({ path_display = { 'shorten' } })
|
|
|
|
end
|
|
|
|
}
|
2022-06-20 19:57:01 +02:00
|
|
|
|
|
|
|
use {
|
|
|
|
"nvim-neotest/neotest",
|
|
|
|
requires = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
"antoinemadec/FixCursorHold.nvim"
|
|
|
|
}
|
|
|
|
}
|
2022-05-12 19:42:09 +02:00
|
|
|
|
2022-04-25 16:23:14 +02:00
|
|
|
-- Database Feature
|
|
|
|
use "tpope/vim-dadbod"
|
|
|
|
use "kristijanhusak/vim-dadbod-ui"
|
2022-05-12 19:42:09 +02:00
|
|
|
|
|
|
|
if packer_bootstrap then
|
|
|
|
packer.sync()
|
|
|
|
end
|
|
|
|
|
|
|
|
end)
|