mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 00:57:34 +00:00
More python stuff
This commit is contained in:
parent
179ccc8e96
commit
ff3b206718
19
vim/ftdetect/python.vim
Normal file
19
vim/ftdetect/python.vim
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
au VimEnter,BufRead,BufNewFile *.py
|
||||||
|
\ if executable('ipython') |
|
||||||
|
\ call neoterm#repl#set('ipython') |
|
||||||
|
\ endif |
|
||||||
|
\ if executable('pytest') |
|
||||||
|
\ call neoterm#test#libs#add('pytest') |
|
||||||
|
\ endif
|
||||||
|
|
||||||
|
let g:neomake_python_pytest_maker = {
|
||||||
|
\ 'exe': 'py.test',
|
||||||
|
\ 'errorformat': &errorformat,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let g:neomake_python_tox_maker = {
|
||||||
|
\ 'exe': 'tox',
|
||||||
|
\ 'errorformat': &errorformat,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
|
@ -170,6 +170,11 @@ Plug 'tmux-plugins/vim-tmux'
|
|||||||
" Python {{
|
" Python {{
|
||||||
Plug 'alfredodeza/coveragepy.vim'
|
Plug 'alfredodeza/coveragepy.vim'
|
||||||
Plug 'alfredodeza/pytest.vim'
|
Plug 'alfredodeza/pytest.vim'
|
||||||
|
" pytest.vim {{
|
||||||
|
nmap <silent><leader>ptp <Esc>:Pytest project<CR>
|
||||||
|
nmap <silent><leader>ptf <Esc>:Pytest file<CR>
|
||||||
|
nmap <silent><leader>ptm <Esc>:Pytest method<CR>
|
||||||
|
" }} pytest.vim
|
||||||
Plug 'davidhalter/jedi-vim'
|
Plug 'davidhalter/jedi-vim'
|
||||||
" jedi-vim {{
|
" jedi-vim {{
|
||||||
let g:jedi#completions_enabled = 0
|
let g:jedi#completions_enabled = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user