A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/camel-tooling/camel-lsp-client-vim below:

GitHub - camel-tooling/camel-lsp-client-vim

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

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.

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4