Set path to Python for neomake; Update package repos before using them

This commit is contained in:
Raoul Snyman 2023-07-28 12:31:25 -07:00
parent 7fc97cec66
commit f972eddc33
Signed by: raoul
GPG Key ID: CD4FD196F8BD6149
2 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,7 @@ let g:startify_list_order = [
let g:python3_host_prog = '/usr/bin/python3'
" Neomake
let g:neomake_python_exe = '/usr/bin/python3'
let g:neomake_python_enabled_makers = ['flake8', 'mypy']
autocmd! BufWritePost * Neomake

View File

@ -5,6 +5,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
APT=`command -v apt`
DNF=`command -v dnf`
function update_pkg_repos() {
if [[ -n "$APT" ]]; then
sudo apt update
fi
}
function check_or_install() {
CMD=`command -v $1`
PKG=$2
@ -102,6 +108,7 @@ function setup_topydo() {
# Set up a generic bin directory for scripts and tools
mkdir -p $HOME/bin
mkdir -p $HOME/.config
update_pkg_repos
install_build_tools
setup_neovim
setup_git