2021-03-31 22:39:21 -04:00
|
|
|
local execute = vim.api.nvim_command
|
|
|
|
|
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
|
2021-06-30 21:57:07 -05:00
|
|
|
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
|
2021-03-31 22:39:21 -04:00
|
|
|
execute 'packadd packer.nvim'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
|
|
|
|
-- Packer can manage itself as an optional plugin
|
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
|
|
|
|
|
|
-- LSP
|
|
|
|
|
use 'neovim/nvim-lspconfig'
|
|
|
|
|
use 'glepnir/lspsaga.nvim'
|
2021-06-21 19:57:46 -05:00
|
|
|
use 'kabouzeid/nvim-lspinstall'
|
2021-03-31 22:39:21 -04:00
|
|
|
-- Autocomplete
|
|
|
|
|
use 'hrsh7th/nvim-compe'
|
2021-06-30 21:57:07 -05:00
|
|
|
-- Function signatures
|
|
|
|
|
use "ray-x/lsp_signature.nvim"
|
2021-06-21 19:57:46 -05:00
|
|
|
|
2021-03-31 22:39:21 -04:00
|
|
|
-- Theme
|
|
|
|
|
use 'drewtempelmeyer/palenight.vim'
|
|
|
|
|
use 'kyazdani42/nvim-web-devicons'
|
|
|
|
|
|
|
|
|
|
-- Syntax
|
|
|
|
|
use 'sheerun/vim-polyglot'
|
2021-06-30 21:57:07 -05:00
|
|
|
-- use {'prettier/vim-prettier', run = "yarn install"}
|
2021-03-31 22:42:00 -04:00
|
|
|
use {'styled-components/vim-styled-components', branch = "main"}
|
2021-06-21 19:57:46 -05:00
|
|
|
|
2021-03-31 22:39:21 -04:00
|
|
|
-- FZF
|
|
|
|
|
use '/usr/local/opt/fzf'
|
|
|
|
|
use 'junegunn/fzf.vim'
|
2021-06-21 19:57:46 -05:00
|
|
|
use 'airblade/vim-rooter'
|
2021-03-31 22:39:21 -04:00
|
|
|
|
|
|
|
|
use {
|
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
|
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-30 21:57:07 -05:00
|
|
|
|
2021-06-21 19:57:46 -05:00
|
|
|
-- Git symobls.
|
|
|
|
|
use {
|
2021-06-30 21:57:07 -05:00
|
|
|
'lewis6991/gitsigns.nvim',
|
2021-06-21 19:57:46 -05:00
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/plenary.nvim'
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require('gitsigns').setup()
|
|
|
|
|
end
|
|
|
|
|
}
|
2021-06-30 21:57:07 -05:00
|
|
|
|
2021-03-31 22:39:21 -04:00
|
|
|
use 'jiangmiao/auto-pairs'
|
|
|
|
|
use 'itchyny/lightline.vim'
|
|
|
|
|
|
2021-06-30 21:57:07 -05:00
|
|
|
-- Golang
|
|
|
|
|
use 'fatih/vim-go'
|
|
|
|
|
|
2021-03-31 22:39:21 -04:00
|
|
|
end)
|