diff --git a/.config/nvim/lua/adam/ensure.lua b/.config/nvim/lua/adam/ensure.lua new file mode 100644 index 0000000..3a1ad95 --- /dev/null +++ b/.config/nvim/lua/adam/ensure.lua @@ -0,0 +1,25 @@ +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' + -- My plugins here + -- use 'foo1/bar1.nvim' + -- use 'foo2/bar2.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) diff --git a/.config/nvim/lua/adam/init.lua b/.config/nvim/lua/adam/init.lua index 9034e94..7a564a3 100644 --- a/.config/nvim/lua/adam/init.lua +++ b/.config/nvim/lua/adam/init.lua @@ -1,3 +1,4 @@ require('adam.set') require('adam.remap') +require('adam.ensure') require('adam.packer') diff --git a/readme.md b/readme.md index 37a2cc1..ab8a9c2 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ It's a bootstrap script for my personal desktop environment that is: 1. Reliable 1. Fast -1. Made from off as many off the shelf parts as possible +1. Made from readily available components 1. Simple (see above) 1. Decent looking @@ -25,16 +25,16 @@ If you want recommendations for archinstall I'll say: Shell install also works on Ubuntu Server 22.04 so it should work on any buntu or Mint, Pop, etc. and maybe Debian too -### Quick shell: +### Quick shell(start here): As your new user in your new user's home directory run: (will overwrite some user files) 1. ```curl -s https://doordesk.net/setup | bash``` 2. Log out and log back in -Minimum install is the default, if you want a graphical environment run: +Minimum install is the default, if you want a graphical environment run: (Arch only) -`.scripts/installdeps_full` +`.scripts/doors/.installdeps_full_arch` to get the rest and then: