Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

6 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Camel LSP client for Vim

This is short instructions for how to integrate your Vim editor with Camel LSP server.

Demo

XmlDemo

Prerequisites

This instruction requires the following plugins:

It assumes those plugins below are already installed in ~/.vimrc:

Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'prabirshrestha/asyncomplete-lsp.vim'

Here we use vim-plug but you can use a plugin manager of your choice: pathogen.vim, Vundle, NeoBundle, dein.vim, etc.

Download LSP jar

mkdir -p ~/lsp/camel-lsp-server
cd ~/lsp/camel-lsp-server
curl -L https://repo1.maven.org/maven2/com/github/camel-tooling/camel-lsp-server/1.8.0/camel-lsp-server-1.8.0.jar -O

Install Camel LSP to your vim

Add following to ~/.vimrc:

if executable('java') && filereadable(expand('~/lsp/camel-lsp-server/camel-lsp-server-1.8.0.jar'))
  au User lsp_setup call lsp#register_server({
    \ 'name': 'camel',
    \ 'cmd': {server_info->[
    \   'java',
    \   '-jar',
    \   expand('~/lsp/camel-lsp-server/camel-lsp-server-1.8.0.jar')
    \ ]},
    \ 'whitelist': ['java', 'xml', 'yaml']
    \ })
endif

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors