prabirshrestha / vim-lsp

async language server protocol plugin for vim and neovim
MIT License
3.1k stars 304 forks source link

[Docs] clj-kondo-lsp-server registration in ~/.vimrc #1474

Closed arnoldmashava closed 1 year ago

arnoldmashava commented 1 year ago

In the Documentation for configuring the registration of the LSPs in the ~/.vimrc file, the code block for the registration of clj-kondo:

  au User lsp_setup call lsp#register_server({
    \ 'name': 'clj-kondo',
    \ 'cmd': {server_info->[&shell, &shellcmdflag, 'java -jar ~/clj-kondo-lsp']},
    \ 'allowlist': ['clojure', 'clojurescript']
    \ })
endif

requires just a little refinement, because the endif results in the error:

Error detected while processing /home/Arnold.Mashava/.vimrc:
line  394:
E580: :endif without :if: endif
Press ENTER or type command to continue

The endif should be removed at the end of the code block - to result in:

  au User lsp_setup call lsp#register_server({
    \ 'name': 'clj-kondo',
    \ 'cmd': {server_info->[&shell, &shellcmdflag, 'java -jar ~/clj-kondo-lsp']},
    \ 'allowlist': ['clojure', 'clojurescript']
    \ })
mattn commented 1 year ago

Fixed.

arnoldmashava commented 1 year ago

Thank you so much @mattn.

Everything is flawless now and my highest regards to Team prabirshrestha/vim-lsp/.

Muchas Gracias y Saludos Cordiales,

Arnold Mashava.