0

所以我正在尝试使用pylavawith Neomake。问题是,我想隔离所需的依赖项,以便在neovim我创建的名为conda. 这样我就不必将依赖关系绑定到我正在处理的任何项目的环境中。

到目前为止,我~/.config/nvim/init.vim的情况如此

call plug#begin()
   Plug 'neomake/neomake'
   Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
   Plug 'zchee/deoplete-jedi'
   Plug 'davidhalter/jedi-vim'
   Plug 'NLKNguyen/papercolor-theme'
   Plug 'treycucco/vim-monotonic'
   Plug 'jalvesaq/vimcmdline'
call plug#end()

let g:jedi#auto_vim_configuration = 0
let g:jedi#use_tabs_not_buffers = 1
let g:jedi#completions_enabled = 0
let g:deoplete#enable_at_startup = 1
let g:python3_host_prog = '/home/severo/miniconda3/envs/neovim/bin/python'
let g:neomake_open_list = 2
call neomake#config#set('ft.python.pylama.exe', 'pylava')
call neomake#configure#automake('nrw', 100)

问题是它根本不起作用。正在使用的python二进制文件是/user/bin/python.

我错过了什么吗?

4

1 回答 1

0

通过将以下内容添加到init.vim

let g:neomake_python_enabled_makers = ['pylama']
let g:neomake_python_pylama_maker = {
        \ 'args': ['--format', 'parsable'],
        \ 'errorformat': '%f:%l:%c: [%t] %m',
        \ 'postprocess': function('neomake#makers#ft#python#PylamaEntryProcess'),
        \ 'output_stream': 'stdout',
        \ 'exe': '/home/severo/miniconda3/envs/neovim/bin/pylava'
        \ }
于 2018-09-14T15:11:22.520 回答