dotfiles/lua/packer_setup.lua
Vladan Popovic 721bc03588 huge refactor
- tidy up
- shuffle code around
- use same abstractions for all usecases
2023-07-30 04:26:44 +02:00

9 lines
417 B
Lua

-- Auto install packer.nvim if not exists
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.api.nvim_command('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
end
vim.cmd [[packadd packer.nvim]]
-- Auto compile when there are changes in plugins.lua
vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile'