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 { 'neovim/nvim-lspconfig' }
20 use { 'onsails/lspkind.nvim' }
21 use { "williamboman/mason.nvim" } -- lsp installer
24 'nvim-treesitter/nvim-treesitter',
29 use { 'hrsh7th/cmp-nvim-lsp' }
30 use { 'hrsh7th/cmp-buffer' }
31 use { 'hrsh7th/cmp-path' }
32 use { 'hrsh7th/cmp-cmdline' }
33 use { 'hrsh7th/nvim-cmp' }
35 -- Automatically set up configuration after cloning packer.nvim
36 if packer_bootstrap then
37 require('packer').sync()