Author: Kyle Fuller <kyle@fuller.li> 2024-04-07 10:42:20 +0100 +0100
Committer: Kyle Fuller <kyle@fuller.li> 2024-04-07 10:48:45 +0100 +0100
Commit: 64fbe932b67a53d197bbddbeba3a30e445416e66
Parent: 5bfbebc450e3ebd3065c91226efbefaad1f0e4ba
refactor(vim): support pytest in nvim with nix-shell
diff --git a/.vim/vimrc b/.vim/vimrc
index 880ecf575a25c5afe6d3bb747cf3b6ce1bcfccf7..fae5f322b0f17a384fb8d18b3f72ca2cf4607614 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -113,6 +113,9 @@ " ack-vim
let g:ackprg = 'ag --vimgrep'
" vim-test
+" Override pytest, otherwise it may pick poetry run, which is incompatible
+" with shells like nixos
+let test#python#pytest#executable = 'pytest'
if &term =~ "^screen"
let test#strategy = "vimux"
map <Leader>q :call VimuxCloseRunner()<CR>