Skip to content

🌠 Dark powered asynchronous completion framework for neovim/Vim8

License

Notifications You must be signed in to change notification settings

washtubs/deoplete.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deoplete.nvim

Build Status

Join the chat at https://gitter.im/Shougo/deoplete.nvim

Deoplete is the abbreviation of "dark powered neo-completion". It provides an asynchronous keyword completion system in the current buffer. To view the current options, please consult the documentation.

Installation

Note: deoplete requires Neovim(latest is recommended) or Vim8 with Python3 and timers(neovim ver.0.1.5+) enabled. See requirements if you aren't sure whether you have this.

  1. Extract the files and put them in your Neovim or .vim directory (usually $XDG_CONFIG_HOME/nvim/).
  2. Write call deoplete#enable() or let g:deoplete#enable_at_startup = 1 in your init.vim

For vim-plug

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

For dein.vim

call dein#add('Shougo/deoplete.nvim')
if !has('nvim')
  call dein#add('roxma/nvim-yarp')
  call dein#add('roxma/vim-hug-neovim-rpc')
endif

Requirements

deoplete requires Neovim or Vim8 with if_python3. If :echo has("python3") returns 1, then you have python 3 support; otherwise, see below.

You can enable Python3 interface with pip:

pip3 install neovim

Please install nvim-yarp plugin for Vim8. https://github.com/roxma/nvim-yarp

Please install vim-hug-neovim-rpc plugin for Vim8. https://github.com/roxma/vim-hug-neovim-rpc

Note: Python3 must be enabled before updating remote plugins

If Deoplete was installed prior to Python support being added to Neovim, :UpdateRemotePlugins should be executed manually in order to enable auto-completion.

Configuration Examples

" Use deoplete.
let g:deoplete#enable_at_startup = 1

Sources

deoplete will display completions via complete() by default.

Here are some completion sources specifically made for deoplete.nvim.

Note: deoplete needs neovim-python ver.0.1.8+.

You need update neovim-python module.

pip3 install --upgrade neovim

If you want to read the Neovim-python/python3 interface install documentation, you should read :help provider-python and the Wiki. https://github.com/zchee/deoplete-jedi/wiki/Setting-up-Python-for-Neovim

Screenshots

Deoplete for JavaScript https://www.youtube.com/watch?v=oanoPTpiSF4

File Name Completion

Omni Completion

Neosnippets and neco-ghc integration

deoplete + echodoc integration

deoplete + deoplete-go integration

deoplete + deoplete-typescript integration

Python completion using deoplete-jedi

C++ completion using clang_complete

Java completion using vim-javacomplete2

Vim Script completion using neco-vim

C# completion using deoplete-omnisharp

Register/Extract list completions

deoplete-fsharp sample ( Enjoy! )

FSharp completion using deopletefs

About

🌠 Dark powered asynchronous completion framework for neovim/Vim8

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 68.7%
  • Vim Script 30.7%
  • Makefile 0.6%