diff options
| author | jdhao <jdhao@hotmail.com> | 2019-11-22 23:17:58 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2019-11-22 23:17:58 +0800 |
| commit | 2bb4ecbfdaa8ce9788600e3128b1a0c533e174cb (patch) | |
| tree | 94f55777acf18b1cac756fd8d59e9570e8bb655b | |
| parent | 7f16da31ed394add35aeaf806f63c41bda6f8314 (diff) | |
Explicitly use Python3
| -rw-r--r-- | variables.vim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/variables.vim b/variables.vim index f9593ae..d9df11e 100644 --- a/variables.vim +++ b/variables.vim @@ -1,20 +1,20 @@ "{ Global Variable "{{ Builtin variables +" Disable Python2 support +let g:loaded_python_provider=0 + " Path to Python 3 interpreter (must be an absolute path), make startup " faster. See https://neovim.io/doc/user/provider.html. -if executable('python') +if executable('python3') if has('win32') - let g:python3_host_prog=substitute(exepath('python'), '.exe$', '', 'g') + let g:python3_host_prog=substitute(exepath('python3'), '.exe$', '', 'g') elseif has('unix') - let g:python3_host_prog=exepath('python') + let g:python3_host_prog=exepath('python3') endif else - echoerr 'Python executable not found! You must install Python and set its PATH!' + echoerr 'Python3 executable not found! You must install Python3 and set its PATH correctly!' endif -" Disable Python2 support -let g:loaded_python_provider=0 - " Custom mapping <leader> (see `:h mapleader` for more info) let mapleader = ',' "}} |
