kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
812 stars 17 forks source link

rnvimr不能使用正确的python版本 #59

Closed 10ve closed 3 years ago

10ve commented 3 years ago

Features: +acl +iconv +tui See ":help feature-compile"

 系统 vimrc 文件: "$VIM/sysinit.vim"
     $VIM 预设值: "/usr/local/Cellar/neovim/HEAD-82100a6/share/nvim"
- Operating system/version:
`Darwin promote.cache-dns.local 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64`
- `nvim +'checkhealth rnvimr'`: 

health#rnvimr#check

OS

**To Reproduce using `nvim -u mini.vim`**

`cat mini.vim`
```vim
" use your plugin manager, here is `vim-plug`
call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr'
let g:rnvimr_vanilla = 1
tnoremap <silent> <M-i> <C-\><C-n>:RnvimrResize<CR>
nnoremap <silent> <M-o> :RnvimrToggle<CR>
tnoremap <silent> <M-o> <C-\><C-n>:RnvimrToggle<CR>
call plug#end()

Steps to reproduce the behavior: 1.checkhealth 2.

health#rnvimr#check
========================================================================
## OS
  - OK: Name: Mac

## Ranger
  - OK: Version: ranger 1.9.3

## Python
  - ERROR: Version: 2.7.16 (default, Oct 30 2020, 02:15:49) [GCC Apple LLVM 12.   0.0 (clang-1200.0.30.4) [+internal-os, ptrauth-isa=sign+stri
    - ADVICE:
      - Python version inside Ranger must be greater than 3
      - Please install Ranger properly

## Pynvim
  - OK: Version: 0.4.2

## Ueberzug (optional)
  - INFO: Ueberzug is not support for Mac

## RPC
  - ERROR: RPC: timeout 3s

Expected behavior 正确识别python路径,或提供变量自己修改路径

Screenshots

截屏2020-12-15 上午8 45 40
10ve commented 3 years ago

在非mini.vim下,还使用这两个可能有影响的变量

let g:loaded_python_provider = 0
let g:python3_host_prog='/usr/local/bin/python3'

pip3 install ranger-fm 后就可以了 不好意思,没认真读readme