completion-buffers
completion-buffers copied to clipboard
Word under cursor appears in completion
Minimal vimrc
call plug#begin($XDG_DATA_HOME.'/nvim/plugins')
Plug 'nvim-lua/completion-nvim'
Plug 'steelsojka/completion-buffers'
cal plug#end()
autocmd bufenter * lua require'completion'.on_attach()
let g:completion_chain_complete_list = [{'complete_items': ['buffer']}]
set completeopt=menuone,noinsert
Steps to reproduce
- Open minimal vimrc
- Enter new line with
o
- Type
cal
- Notice how the completion shows
cal
andcall
Expected behavior
The completions should not show cal
but only call
because cal is already typed.