You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
2.4 KiB
Lua
118 lines
2.4 KiB
Lua
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
|
|
packer_bootstrap = fn.system({
|
|
'git', 'clone', '--depth', '1',
|
|
'https://github.com/wbthomason/packer.nvim',
|
|
install_path
|
|
})
|
|
end
|
|
|
|
function get_config(name)
|
|
return string.format("require(\"config/%s\")", name)
|
|
end
|
|
|
|
return require('packer').startup(function(use)
|
|
-- packer itself
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
-- tpope general better-vim-plugins
|
|
use 'tpope/vim-apathy'
|
|
use 'tpope/vim-commentary'
|
|
use 'tpope/vim-fugitive'
|
|
use 'tpope/vim-ragtag'
|
|
use 'tpope/vim-repeat'
|
|
use 'tpope/vim-surround'
|
|
use 'tpope/vim-unimpaired'
|
|
|
|
-- other general plugins
|
|
use 'christoomey/vim-tmux-navigator'
|
|
use 'editorconfig/editorconfig-vim'
|
|
use 'wellle/targets.vim'
|
|
use 'wincent/terminus'
|
|
|
|
-- lsp and treesitter
|
|
use {
|
|
'neovim/nvim-lspconfig',
|
|
config = get_config('lspconfig'),
|
|
}
|
|
use {
|
|
'nvim-treesitter/nvim-treesitter',
|
|
config = get_config('treesitter'),
|
|
run = ":TSUpdate",
|
|
}
|
|
|
|
-- fzf integration
|
|
use {
|
|
'ibhagwan/fzf-lua',
|
|
config = get_config('fzf'),
|
|
requires = {
|
|
{ 'kyazdani42/nvim-web-devicons', opt = true },
|
|
},
|
|
}
|
|
|
|
-- hop navigation
|
|
use {
|
|
'phaazon/hop.nvim',
|
|
config = get_config('hop'),
|
|
}
|
|
|
|
-- autoparis
|
|
use {
|
|
'windwp/nvim-autopairs',
|
|
config = get_config('autopairs'),
|
|
}
|
|
|
|
-- nice status line
|
|
use {
|
|
'nvim-lualine/lualine.nvim',
|
|
config = get_config('lualine'),
|
|
event = 'VimEnter',
|
|
requires = {
|
|
{ 'kyazdani42/nvim-web-devicons', opt = true }
|
|
},
|
|
}
|
|
|
|
-- autocompletion
|
|
use {
|
|
'hrsh7th/nvim-cmp',
|
|
config = get_config('cmp'),
|
|
requires = {
|
|
'andersevenrud/cmp-tmux',
|
|
'hrsh7th/cmp-buffer',
|
|
'hrsh7th/cmp-calc',
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
'hrsh7th/cmp-path',
|
|
'hrsh7th/cmp-vsnip',
|
|
},
|
|
}
|
|
|
|
-- snippets
|
|
use {
|
|
'hrsh7th/vim-vsnip',
|
|
config = get_config('vsnip'),
|
|
}
|
|
use {
|
|
'rafamadriz/friendly-snippets',
|
|
requires = {
|
|
'hrsh7th/vim-vsnip'
|
|
},
|
|
}
|
|
|
|
use {
|
|
'voldikss/vim-floaterm',
|
|
config = get_config('floaterm'),
|
|
}
|
|
|
|
-- colorscheme
|
|
use {
|
|
'ellisonleao/gruvbox.nvim',
|
|
requires = { 'rktjmp/lush.nvim' },
|
|
}
|
|
|
|
-- Automatically set up configuration after cloning packer.nvim
|
|
if packer_bootstrap then
|
|
require('packer').sync()
|
|
end
|
|
end)
|