diff options
Diffstat (limited to 'dotfiles/nvim/lua/master/packer.lua')
-rw-r--r-- | dotfiles/nvim/lua/master/packer.lua | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dotfiles/nvim/lua/master/packer.lua b/dotfiles/nvim/lua/master/packer.lua new file mode 100644 index 0000000..c31c23a --- /dev/null +++ b/dotfiles/nvim/lua/master/packer.lua @@ -0,0 +1,39 @@ +--[[ PACKER BOOTSTRAP ]] + +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() + +return require('packer').startup(function(use) + use 'wbthomason/packer.nvim' + + + use "ellisonleao/gruvbox.nvim" + use "akinsho/toggleterm.nvim" + use 'numToStr/Comment.nvim' + use 'windwp/nvim-autopairs' + + use { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + requires = { + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + } + } + + if packer_bootstrap then + require('packer').sync() + end +end) + + |