This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/neovim/lua/plugins.lua
2021-12-09 10:55:52 -06:00

49 lines
1.4 KiB
Lua

local setup = function()
local packer_install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if #vim.fn.glob(packer_install_path) == 0 then
vim.fn.system {'git', 'clone', 'https://github.com/wbthomason/packer.nvim', packer_install_path}
vim.api.nvim_command'packadd packer.nvim'
end
vim.g.polyglot_disabled = {'cue'}
local packer = require'packer'
packer.startup(function()
local plugins = {
'wbthomason/packer.nvim',
'editorconfig/editorconfig-vim',
'tpope/vim-sleuth',
'vim-scripts/LargeFile',
'vim-scripts/restore_view.vim',
'christoomey/vim-tmux-navigator',
'tpope/vim-fugitive',
'tpope/vim-rhubarb',
'tpope/vim-commentary',
'tpope/vim-repeat',
'machakann/vim-sandwich',
'michaeljsmith/vim-indent-object',
'wellle/targets.vim',
'bkad/CamelCaseMotion',
'ludovicchabant/vim-gutentags',
'tpope/vim-obsession',
'dhruvasagar/vim-prosession',
'nvim-lua/popup.nvim',
'nvim-lua/plenary.nvim',
{'nvim-telescope/telescope.nvim', requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}},
-- 'joshdick/onedark.vim',
'lukas-reineke/indent-blankline.nvim',
-- {'lewis6991/gitsigns.nvim', requires = {'nvim-lua/plenary.nvim'}},
'neovim/nvim-lspconfig',
'hrsh7th/nvim-compe',
'jjo/vim-cue',
'sheerun/vim-polyglot',
{'neoclide/coc.nvim', branch = 'release'},
}
for _,plugin in ipairs(plugins) do
packer.use(plugin)
end
end)
end
return {setup = setup}