Ⅰ. 插件描述
deoplete.nvim source for julia. Providing julia Syntax Completions for julia, in Neovim (deprecated for julia 0.6+)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'juliaeditorsupport/deoplete-julia'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'juliaeditorsupport/deoplete-julia'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'juliaeditorsupport/deoplete-julia'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/juliaeditorsupport/deoplete-julia
Ⅳ. 文档说明
# Deoplete-Julia
This package supplements julia-vim by providing syntax completions, through Deoplete.
This is for NeoVim, rather than orginal Vim.
The transition from Vim to neovim is fairly seamless these days -- it supports basically all vim plugins etc.
Check out the video of it working. (Click the image below)
(Yes, I know that code is not actually correct. Recording demos is hard.)
Requirements:
- NeoVim - like vim, but newer
- Deoplete - the completion engine that this is a plugin for
Julia -- the julia programming language
- v0.5 is the only version strongly supported,
- support for 0.6+ will not be coming. (For 0.6 I plan to move to something based on (LanguageServer.jl)[https://github.com/JuliaEditorSupport/LanguageServer.jl] -- stay tuned)
- This is not compatible with 0.4
Because this interacts with the AST and reflection on a tightish level it is dependent on julia's internal representations.
- It may have been better to display marginally less information, but be more stable, by depending only on the docstrings (/internal help), and on the result of
methods
- It may have been better to display marginally less information, but be more stable, by depending only on the docstrings (/internal help), and on the result of
Suggested
julia-vim - syntax highlighting and LaTeX/Unicode replacement
- deoplete-julia does not at all interact with julia-vim, and that is kinda a nice thing. They do different task but work together well.
- julia-vim runs just fine in NeoVim
Installation
Use your prefered Vim package manager, eg Vundle.
Plugin 'Shougo/deoplete.nvim'
Plugin 'JuliaEditorSupport/deoplete-julia'
Do not forget to enable deoplete in your .nvimrc
if you've not used it before.
let g:deoplete#enable_at_startup = 1
The first time a you using
a module, will take a little longer as it caches the names from that module (in particular the first time you edit a file at all will take longer, as it builds the cache of names for Base
).
This cache should rebuild when the module is editted.
You shouldn't notice the cache being generated -- it won't hang, but julia completions will not work til it is done.