1 local ensure_packer = function()
3 local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
4 if fn.empty(fn.glob(install_path)) > 0 then
5 fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
6 vim.cmd [[packadd packer.nvim]]
12 local packer_bootstrap = ensure_packer()
14 return require('packer').startup(function(use)
15 use { 'wbthomason/packer.nvim' }
20 vim.cmd('colorscheme rose-pine')
23 use { 'romainl/Apprentice' }
24 use { 'folke/tokyonight.nvim' }
25 use { 'unblevable/quick-scope'}
26 use { 'onsails/lspkind.nvim' }
29 'nvim-treesitter/nvim-treesitter',
33 'VonHeikemen/lsp-zero.nvim',
36 {'neovim/nvim-lspconfig'},
37 {'williamboman/mason.nvim'},
38 {'williamboman/mason-lspconfig.nvim'},
42 {'hrsh7th/cmp-buffer'},
44 {'saadparwaiz1/cmp_luasnip'},
45 {'hrsh7th/cmp-nvim-lsp'},
46 {'hrsh7th/cmp-nvim-lua'},
50 {'rafamadriz/friendly-snippets'},
56 use { 'tpope/vim-fugitive' }
59 'nvim-telescope/telescope.nvim', branch = '0.1.x',
60 requires = { {'nvim-lua/plenary.nvim'} }
63 -- Automatically set up configuration after cloning packer.nvim
64 if packer_bootstrap then
65 require('packer').sync()