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_ex_enable not working #44

Closed ghost closed 4 years ago

ghost commented 4 years ago

I wanna replace netrw with Ranger, i have set this option in my configs but whenever i open nvim into a folder the manager is the default.

I'm currently using Arch linux.

kevinhwang91 commented 4 years ago
  1. Do the other features work as expected?
  2. What is the message output by using :auto RnvimrFileExplorer in neovim?
  3. try this mini config.
    call plug#begin('~/.config/nvim/plugged')
    Plug 'kevinhwang91/rnvimr'
    let g:rnvimr_enable_ex = 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()
ghost commented 4 years ago
  1. Do the other features work as expected? Yes.

  2. What is the message output by using :auto RnvimrFileExplorer in neovim? `--- Autocommands --- RnvimrFileExplorer BufEnter

    • if isdirectory(expand('')) && v:vim_did_enter | bwip eout! | call rnvimr#open(expand('')) | endif`
  3. try this mini config. the config didn't work.

kevinhwang91 commented 4 years ago
  1. run nvim -u ~/mini.vim . mini.vim is above snippet.

  2. run nvim +'checkhealth rnvimr' and post the output.

ghost commented 4 years ago
  1. run nvim -u ~/mini.vim . Running the above command didn't work. I currently using the tutorial from ChrisAtMachine i don't know if that config may encounter problems with your plugin
kevinhwang91 commented 4 years ago

I can't reproduce, and you didn't feedback any useful information.

jordanator commented 4 years ago

I had the same issue not being able to replace ranger with netrw on startup, I too followed the tutorial from ChrisAtMachine.

Removing NERDTree resolved the issue for me.

kevinhwang91 commented 4 years ago

I had the same issue not being able to replace ranger with netrw on startup, I too followed the tutorial from ChrisAtMachine.

Removing NERDTree resolved the issue for me.

Nice, I forget that people maybe install other file manager plugin such as NERDTree will cause this issue. You don't need to uninstall NERDTree, let g:NERDTreeHijackNetrw = 0 will make it to be compatible with rnvimr. It should be listed in FAQ.