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 packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) end -- Only required if you have packer configured as `opt` vim.cmd [[packadd packer.nvim]] -- Skip heavyweight plugins (LSP completion, treesitter) on resource-constrained -- environments like Termux, where they're slow/flaky to install and build and -- generally unnecessary for quick edits. Termux sets $TERMUX_VERSION natively. local is_termux = os.getenv('TERMUX_VERSION') ~= nil vim.g.is_termux = is_termux return require('packer').startup(function(use) -- Packer can manage itself use 'wbthomason/packer.nvim' if not is_termux then -- LSP / COMPLETION -- use {'neoclide/coc.nvim', branch = "release"} use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'} end -- automatically adjust tab based on current file use 'tpope/vim-sleuth' use 'junegunn/fzf' use 'junegunn/fzf.vim' -- Gruvbox colorscheme use 'ellisonleao/gruvbox.nvim' use 'lukas-reineke/indent-blankline.nvim' -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if packer_bootstrap then require('packer').sync() end end) -- This file can be loaded by calling `lua require('plugins')` from your init.vim