Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

RLS or neovim/vim #30

Open
DevinBayly opened this issue Dec 21, 2018 · 0 comments
Open

RLS or neovim/vim #30

DevinBayly opened this issue Dec 21, 2018 · 0 comments

Comments

@DevinBayly
Copy link

Hi there,
I would like to know whether you believe missing completion items to be from the RLS side or something in the neovim/vim side.
my main.rs file looks like this

use std::rc::{Rc,Weak};

fn my_func() {}

fn main() {
    let A = Rc::new(50);
    let B = Rc::clone(&A);
    println!("{:?} {:?}",B,A);
}

When finishing the line defining B i don't see clone in the completion options for Rc::
the second thing is a list of completions can be seen when typing A. but not B.

I have an init.vim

filetype plugin indent on 
"" the junegun plugged section
call plug#begin('~/.local/share/nvim/plugged')
Plug 'rust-lang/rust.vim'
Plug 'autozimu/LanguageClient-neovim', {
    \ 'branch': 'next',
    \ 'do': 'bash install.sh',
    \ }
Plug 'sebastianmarkow/deoplete-rust'

if has('nvim')
  Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
  Plug 'Shougo/deoplete.nvim'
  Plug 'roxma/nvim-yarp'
  Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end()
let g:deoplete#sources#rust#racer_binary='~/.cargo/bin/racer'
let g:deoplete#sources#rust#rust_source_path='~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu'
" Required for operations modifying multiple buffers like rename.
set hidden

let g:deoplete#enable_at_startup = 1

Let me know if you have any ideas about this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant