Fix macos setup script for M1

This commit is contained in:
Fabian Ising
2023-06-01 14:32:58 +02:00
parent 29cb35f4f3
commit f18711f073
8 changed files with 15 additions and 9 deletions

View File

@@ -276,5 +276,10 @@ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
if has("macunix")
" Required for virtualenvs
let g:python3_host_prog="/usr/local/bin/python3"
let arch=substitute(system('uname -m'), '\n', '', '')
if arch == 'arm64'
let g:python3_host_prog="/opt/homebrew/bin/python3"
else
let g:python3_host_prog="/usr/local/bin/python3"
endif
endif