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}) vim.cmd [[packadd packer.nvim]] end packer = require('packer') packer.init() packer.use 'https://github.com/wbthomason/packer.nvim' -- common dependencies which require setup packer.use { 'https://github.com/nvim-treesitter/nvim-treesitter', run = function() require('nvim-treesitter.install').update({ with_sync = true }) end } packer.use { 'https://github.com/vim-syntastic/syntastic', config = function() local sl = vim.o.statusline sl = sl .. '%#warningmsg#' sl = sl .. '%{SyntasticStatuslineFlag()}' sl = sl .. '%*' vim.g.syntastic_always_populate_loc_list = 1 vim.g.syntastic_auto_loc_list = 1 vim.g.syntastic_check_on_open = 1 vim.g.syntastic_check_on_wq = 0 end } -- compile and install new plugins when lua files in this dir are written vim.cmd([[ augroup packer_user_config autocmd! autocmd User PackerComplete PackerCompile autocmd BufWritePost nvim/lua/*.lua source | PackerInstall augroup end ]])