WIP: Switch to NixOS #5

Draft
FunctionalHacker wants to merge 1349 commits from nix into main
Showing only changes of commit 15f6079e28 - Show all commits

View file

@ -4,7 +4,7 @@ local fn = vim.fn
local install_path = fn.stdpath('data') .. '/site/pack/packer/opt/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
print('Installing Packer')
Packer_bootstrap = fn.system({
Packer_installed = fn.system({
'git', 'clone', '--depth', '1',
'https://github.com/wbthomason/packer.nvim', install_path
})
@ -178,8 +178,7 @@ end)
-- Sync plugins if Packer was just
-- installed
if Packer_bootstrap then
if Packer_installed then
print('Syncing plugins')
require('packer').sync()
print('Synced')
end