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' }
16 use { 'catppuccin/nvim', as = 'catppuccin' }
17 use { 'folke/tokyonight.nvim' }
18 use { 'unblevable/quick-scope'}
19 use { 'onsails/lspkind.nvim' }
22 'nvim-treesitter/nvim-treesitter',
26 'VonHeikemen/lsp-zero.nvim',
29 {'neovim/nvim-lspconfig'},
30 {'williamboman/mason.nvim'},
31 {'williamboman/mason-lspconfig.nvim'},
35 {'hrsh7th/cmp-buffer'},
37 {'saadparwaiz1/cmp_luasnip'},
38 {'hrsh7th/cmp-nvim-lsp'},
39 {'hrsh7th/cmp-nvim-lua'},
43 {'rafamadriz/friendly-snippets'},
48 use { 'hrsh7th/cmp-cmdline' }
51 'nvim-telescope/telescope.nvim', branch = '0.1.x',
52 requires = { {'nvim-lua/plenary.nvim'} }
55 -- Automatically set up configuration after cloning packer.nvim
56 if packer_bootstrap then
57 require('packer').sync()