Skip to content

Commit 21521b6

Browse files
committed
refactor: add todo/use term to execute command
1 parent 0a5210b commit 21521b6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Vim + Pipenv, with [virtualenv][vim-virtualenv]/[lsp][vim-lsp] support.
99
- [x] Auto switch pipenv for different file
1010
- [x] Auto reload lsp server
1111
- [x] Provide in-vim `Pipenv` command
12+
- [ ] Auto change directory to Pipfile root folder
13+
- [ ] Cache pipenv paths (for performance)
14+
- [ ] Test on windows/macos/linux
1215

1316

1417
## Installing

autoload/pipenv.vim

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ function! pipenv#command(...)
1515
call pipenv#activate(1)
1616
return
1717
endif
18-
echo "Executing pipenv " . action . " ..."
19-
let output=systemlist("pipenv " . action)
20-
for line in output
21-
echom line
22-
endfor
18+
execute "silent term pipenv " . action
2319
else
2420
" If no command, activate pipenv of currently selected buffer
2521
call pipenv#activate(1)

plugin/pipenv.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if !has('python3') && !has('python')
1212
finish
1313
endif
1414

15-
" default: activate pipenv
15+
" default: activate pipenv automatically
1616
if !exists("g:pipenv_auto_activate")
1717
let g:pipenv_auto_activate = 1
1818
endif

0 commit comments

Comments
 (0)