neovim-config/lua/install-plugins.lua
2023-07-05 19:30:40 -04:00

500 lines
10 KiB
Lua

local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
vim.cmd [[packadd packer.nvim]]
return true
end
return false
end
local packer_bootstrap = ensure_packer()
-- https://github.com/wbthomason/packer.nvim/issues/202
require('packer').init({
max_jobs = 50
})
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'lewis6991/impatient.nvim'
use 'nvim-lua/plenary.nvim'
use {
'neovim/nvim-lspconfig',
requires = {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'hrsh7th/cmp-nvim-lsp',
},
config = function()
require('plugins.lsp')
end,
}
use {
'j-hui/fidget.nvim',
tag = 'legacy',
config = function()
require('plugins.fidget-nvim')
end,
}
use {
"folke/neodev.nvim",
config = function()
require('plugins.neodev-nvim')
end,
}
use {
'hrsh7th/nvim-cmp',
requires = {
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-nvim-lsp-signature-help',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
},
config = function()
require('plugins.nvim-cmp')
end,
}
use {
'Saecki/crates.nvim',
event = { "BufRead Cargo.toml" },
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require('plugins.crates-nvim')
end,
}
use {
'petertriho/cmp-git',
requires = 'nvim-lua/plenary.nvim',
}
use {
'rmagatti/goto-preview',
config = function()
require('plugins.goto-preview-nvim')
end,
}
use 'hrsh7th/cmp-vsnip'
use 'hrsh7th/vim-vsnip'
use 'rafamadriz/friendly-snippets'
use {
'folke/trouble.nvim',
config = function()
require('plugins.trouble-nvim')
end,
}
use {
'mfussenegger/nvim-dap',
config = function()
require('plugins.nvim-dap')
end,
}
use {
'theHamsta/nvim-dap-virtual-text',
config = function()
require('plugins.nvim-dap-virtual-text')
end,
}
use {
'rcarriga/nvim-dap-ui',
requires = {
'mfussenegger/nvim-dap',
},
config = function()
require('plugins.nvim-dap-ui')
end,
}
use {
'kosayoda/nvim-lightbulb',
requires = 'antoinemadec/FixCursorHold.nvim',
config = function()
require('plugins.nvim-lightbulb')
end,
}
use {
'weilbith/nvim-code-action-menu',
cmd = 'CodeActionMenu',
}
use 'onsails/lspkind.nvim'
use {
'nvim-treesitter/nvim-treesitter',
run = function() require('nvim-treesitter.install').update({ with_sync = true }) end,
config = function()
require('plugins.nvim-treesitter')
end,
}
use {
'nvim-treesitter/nvim-treesitter-textobjects',
requires = {
'nvim-treesitter/nvim-treesitter',
},
}
use {
'theHamsta/nvim-treesitter-pairs',
requires = {
'nvim-treesitter/nvim-treesitter',
},
}
use {
'windwp/nvim-ts-autotag',
requires = {
'nvim-treesitter/nvim-treesitter',
},
}
use {
'windwp/nvim-autopairs',
config = function()
require('plugins.nvim-autopairs')
end,
}
use {
'nvim-treesitter/nvim-treesitter-refactor',
requires = {
'nvim-treesitter/nvim-treesitter',
},
}
use {
'JoosepAlviste/nvim-ts-context-commentstring',
requires = {
'nvim-treesitter/nvim-treesitter',
},
}
use {
'numToStr/Comment.nvim',
requires = {
'nvim-treesitter/nvim-treesitter',
},
config = function()
require('plugins.comment-nvim')
end,
}
use {
'nvim-treesitter/nvim-treesitter-context',
requires = {
'nvim-treesitter/nvim-treesitter',
},
config = function()
require('plugins.nvim-treesitter-context')
end,
}
use {
'nvim-telescope/telescope.nvim',
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require('plugins.telescope')
end,
}
use {
'nvim-telescope/telescope-fzf-native.nvim',
run = 'make',
requires = {
'nvim-telescope/telescope.nvim',
},
}
use {
'nvim-telescope/telescope-symbols.nvim',
requires = {
'nvim-telescope/telescope.nvim',
},
}
use {
'nvim-telescope/telescope-github.nvim',
requires = {
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope.nvim',
},
}
use {
'LinArcX/telescope-env.nvim',
requires = {
'nvim-telescope/telescope.nvim',
},
}
use {
'xiyaowong/telescope-emoji.nvim',
requires = {
'nvim-telescope/telescope.nvim',
},
}
use 'nvim-telescope/telescope-ui-select.nvim'
use 'nvim-telescope/telescope-project.nvim'
use 'NLKNguyen/papercolor-theme'
use {
'akinsho/toggleterm.nvim',
tag = '*',
config = function()
require('plugins.toggleterm-nvim')
end,
}
use {
'ethanholz/nvim-lastplace',
config = function()
require('plugins.lastplace-nvim')
end,
}
use {
'nacro90/numb.nvim',
config = function()
require('plugins.numb-nvim')
end,
}
use {
'tpope/vim-fugitive',
config = function()
require('plugins.fugitive')
end,
}
use 'tpope/vim-rhubarb'
use {
'lewis6991/gitsigns.nvim',
config = function()
require('plugins.gitsigns')
end,
}
use {
'sindrets/diffview.nvim',
requires = 'nvim-lua/plenary.nvim',
config = function()
require('plugins.diffview')
end,
}
use 'kyazdani42/nvim-web-devicons'
use {
'pwntester/octo.nvim',
requires = {
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope.nvim',
'kyazdani42/nvim-web-devicons',
},
config = function()
require('plugins.octo-nvim')
end
}
use {
'stevearc/oil.nvim',
requires = {
'nvim-tree/nvim-web-devicons',
},
config = function()
require('plugins.oil-nvim')
end,
}
use {
'kylechui/nvim-surround',
config = function()
require('plugins.surround-nvim')
end,
}
use {
'ggandor/leap.nvim',
requires = 'tpope/vim-repeat',
config = function()
require('plugins.leap-nvim')
end,
}
use {
'ggandor/flit.nvim',
config = function()
require('plugins.flit-nvim')
end,
}
use 'dstein64/vim-startuptime'
use {
'nvim-neotest/neotest',
requires = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
'antoinemadec/FixCursorHold.nvim',
},
config = function()
require('plugins.neotest')
end,
}
use 'rouge8/neotest-rust'
use {
'simrat39/rust-tools.nvim',
requires = {
'hrsh7th/nvim-cmp',
},
config = function()
require('plugins.rust-tools-nvim')
end,
}
use {
'jose-elias-alvarez/typescript.nvim',
config = function()
require('plugins.typescript-nvim')
end,
}
use {
'zbirenbaum/copilot.lua',
cmd = 'Copilot',
event = 'InsertEnter',
config = function()
require('plugins.copilot')
end,
}
use {
'zbirenbaum/copilot-cmp',
requires = {
'hrsh7th/nvim-cmp',
'zbirenbaum/copilot.lua',
},
config = function ()
require('plugins.copilot-cmp')
end
}
-- use 'github/copilot.vim'
use { "MunifTanjim/nui.nvim" }
use {
"Bryley/neoai.nvim",
require = { "MunifTanjim/nui.nvim" },
config = function()
require('plugins.neoai-nvim')
end
}
use 'ziglang/zig.vim'
use {
'akinsho/bufferline.nvim',
tag = "v3.*",
requires = 'kyazdani42/nvim-web-devicons',
config = function()
require('plugins.bufferline-nvim')
end,
}
use {
'nvim-lualine/lualine.nvim',
requires = {
'kyazdani42/nvim-web-devicons',
opt = true
},
config = function()
require('plugins.lualine-nvim')
end,
}
use 'tpope/vim-unimpaired'
use 'tpope/vim-repeat'
use 'tpope/vim-eunuch'
use 'tpope/vim-sleuth'
use {
'simnalamburt/vim-mundo',
config = function()
require('plugins.vim-mundo')
end,
}
use {
'lukas-reineke/indent-blankline.nvim',
config = function()
require('plugins.indent-blankline-nvim')
end,
}
use {
'ktunprasert/gui-font-resize.nvim',
config = function()
require('plugins.gui-font-resize-nvim')
end,
}
use {
'jose-elias-alvarez/null-ls.nvim',
config = function()
require('plugins.null-ls-nvim')
end,
requires = { 'nvim-lua/plenary.nvim' },
}
use {
'rmagatti/auto-session',
config = function()
require('plugins.auto-session')
end
}
use {
'rmagatti/session-lens',
requires = {'rmagatti/auto-session', 'nvim-telescope/telescope.nvim'},
config = function()
require('plugins.session-lens')
end
}
use {
'Pocco81/true-zen.nvim',
config = function()
require('plugins.true-zen-nvim')
end
}
use {
'sindrets/winshift.nvim',
config = function()
require('plugins.winshift-nvim')
end,
}
use {
'NTBBloodbath/rest.nvim',
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require('plugins.rest-nvim')
end,
}
use {
'norcalli/nvim-colorizer.lua',
config = function()
require('plugins.nvim-colorizer')
end,
}
use {
'folke/which-key.nvim',
config = function()
require('plugins.which-key-nvim')
end
}
use {
'ellisonleao/gruvbox.nvim',
config = function()
require('plugins.gruvbox')
end,
}
use 'eandrju/cellular-automaton.nvim'
use 'nyoom-engineering/oxocarbon.nvim'
use 'folke/tokyonight.nvim'
use {
'lifepillar/pgsql.vim',
ft = { 'sql' },
config = function()
require('plugins.pgsql-vim')
end,
}
use 'NoahTheDuke/vim-just'
use {
'yorickpeterse/nvim-pqf',
config = function()
require('plugins.nvim-pqf')
end,
}
use {
'akinsho/git-conflict.nvim',
config = function()
require('plugins.git-conflict-nvim')
end,
}
use {
'Wansmer/treesj',
requires = { 'nvim-treesitter' },
config = function()
require('plugins.treesj')
end,
}
use {
'goolord/alpha-nvim',
requires = { 'nvim-tree/nvim-web-devicons' },
config = function ()
require'alpha'.setup(require'alpha.themes.startify'.config)
end
}
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
end)