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 { 'catppuccin/nvim', as = 'catppuccin' } use { 'folke/tokyonight.nvim' } use { 'unblevable/quick-scope'} use { 'onsails/lspkind.nvim' } use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' } use { 'VonHeikemen/lsp-zero.nvim', requires = { -- LSP Support {'neovim/nvim-lspconfig'}, {'williamboman/mason.nvim'}, {'williamboman/mason-lspconfig.nvim'}, -- Autocompletion {'hrsh7th/nvim-cmp'}, {'hrsh7th/cmp-buffer'}, {'hrsh7th/cmp-path'}, {'saadparwaiz1/cmp_luasnip'}, {'hrsh7th/cmp-nvim-lsp'}, {'hrsh7th/cmp-nvim-lua'}, } } -- complition stuff use { 'hrsh7th/cmp-cmdline' } -- Automatically set up configuration after cloning packer.nvim if packer_bootstrap then require('packer').sync() end end)