Deoplete.nvim: Directory list dropdown relative to filename

Created on 13 Oct 2016  路  2Comments  路  Source: Shougo/deoplete.nvim

This is more of question and I think I know why this happens but just wanted to confirm this and possibly improve on it.

Problems summary

I've been using YouCompleteMe for sometime and just switched to deoplete couple of weeks ago and I noticed that when I try typing the path(../) deoplete displays the path that's relative to pwd when I expected it to display files/dirs from the current file's path. The pwd path might not be the same to file path if you had opened the file with fzf or nerdtree plugin.
YouCompleteMe handles this well and uses the filepath rather than pwd path.

Expected

Is it possible to have it something like YouCompleteMe because often times when I'm working on file I sort of expect it to display relative to the file path.

Environment Information

  • OS: Ubuntu 16.04

    Provide a minimal init.vim with less than 50 lines (Required!)

" Your minimal init.vim
function! Do(info)
  UpdateRemotePlugins
endfunction
Plug 'Shougo/deoplete.nvim', { 'do': function('Do') }
...
let g:deoplete#enable_at_startup = 1
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"

Screen shot (if possible)

ycm
The above screenshot is of YouCompleteMe listing files/dirs from current filepath.

deoplete
The above screenshot is of deoplete listing files/dirs from pwd path.

Most helpful comment

let g:deoplete#file#enable_buffer_path = 1 is what you want.

All 2 comments

let g:deoplete#file#enable_buffer_path = 1 is what you want.

Did not knew it was that simple. Thank you. 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iio7 picture iio7  路  23Comments

magicalbanana picture magicalbanana  路  44Comments

jrwrigh picture jrwrigh  路  25Comments

ExpandingMan picture ExpandingMan  路  35Comments

blueyed picture blueyed  路  31Comments