kevinhwang91 / rnvimr

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

Invalid linemode: devicons #74

Closed taoliv closed 3 years ago

taoliv commented 3 years ago

My configuration

" use your plugin manager, here is `vim-plug`
call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr', { 'on': 'RnvimrToggle' }
call plug#end()

let g:rnvimr_enable_ex = 1
let g:rnvimr_enable_picker = 1
let g:rnvimr_enable_bw = 1

Expected behavior In my ranger: image

Screenshots When open ranger in nvim: image

kevinhwang91 commented 3 years ago

Please provide the message tree ~/.config/ranger and follow the https://github.com/alexanderjeurissen/ranger_devicons#install-instructions steps

taoliv commented 3 years ago

Thanks for your reply. I just figured it out. My directory structure just now is:

tree ~/.config/ranger/plugins
.
├── compress.py
├── devicons.py
├── extract.py
└── __init__.py

0 directories, 4 files

__init__.py and devicons.py are copied from https://github.com/alexanderjeurissen/ranger_devicons.

When I create a subfolder devicons here and move __init__.py and devicons.py to devicons, it works:

tree ~/.config/ranger/plugins
.
├── compress.py
├── devicons
│   ├── devicons.py
│   ├── __init__.py
│   └── __pycache__
│       ├── devicons.cpython-38.pyc
│       └── __init__.cpython-38.pyc
├── extract.py
└── __pycache__
    ├── compress.cpython-38.pyc
    ├── devicons.cpython-38.pyc
    ├── extract.cpython-38.pyc
    └── __init__.cpython-38.pyc

3 directories, 10 files