Vim + LanguageServer.jl or something like it

I saw an awesome tool for neovim.

Is there any similar thing for vim or neovim?
Also, I’d like to how to setup such tools.
Please help me :slight_smile:

Thanks.

neovim is plain vim, it’s not vim+something, it’s a different plain vim.

But I thought last time I checked LS stuff works on Vim too.

1 Like

Thanks.
Do yiu know some reference for vim that I may be able to follow easily?

there is a tutorial in the repo? Vim and Neovim · julia-vscode/LanguageServer.jl Wiki · GitHub

I’ve tried it but it does not work. I may have to try it again.

EDIT: well, some error occurs :frowning:
I gave up. I’ve tried somethings including implementing it with neovim but I failed it.

I’ve decided to use neovim and coc cuz it’s faster than vim and very convenient.
Here’s a guideline.

In your configuration file (such as ~/.config/nvim/init.vim), add them (using vim-plug):

Plug 'JuliaEditorSupport/julia-vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'fannheyward/coc-julia'

That’s it.

+) One more thing: coc-julia and julia-vim may be conflicted with each other when using TAB completion for LaTeX-to-Unicode transformation. I avoided this issue by changing julia-vim configuration to LaTeX-to-Unicode via keymap.

4 Likes

Does this setup work out of box? I get some “Missing reference” warning which are wrong.

OK. Installing coc and coc-julia in vim works. My mistake is that

  1. I did not put my source file in a project.
  2. I did not explicitly add packages which I use, such as LinearAlgebra in my project.toml

That’s why I got a tons of “Missing reference”.

1 Like