iamcco / diagnostic-languageserver

diagnostic language server integrate with linters
MIT License
418 stars 28 forks source link

Where does the config go? #10

Closed gbrlsnchs closed 5 years ago

gbrlsnchs commented 5 years ago

I want to use this LSP with a different LSP client than coc.nvim. So, where does this LSP's config file go? Would you mind documenting it in README for noncoc.nvim users? Thanks!

iamcco commented 5 years ago

I only use coc.nvim so I don't know how other lsp client config, but it must have a initializationOptions option for per langeuage server, therefor just put the initializationOptions config to their initializationOptions option then it should work.

gbrlsnchs commented 5 years ago

Oh, I see. So the config described in README is the initialization options! Would you mind putting that golden information in README? In my case, I want to try this LSP with vim-lsp, and in fact it does handle initialization options, so I should be fine...

If it's indeed all about passing things as initialization options, it's all good to close this issue (still I think it's important such information to be in the README).

Thanks!

Edit: with "putting in the README", I mean, not every LSP user knows about LSP inner configuration, so me not knowing about initialization options didn't spot what the config was all about... after you explained it, I searched for it and learned about such option, so thanks again.

iamcco commented 5 years ago

image

The first block in the picture is lsp client relate config. and the second block is options pass to initializationOptions for diagnostic-languageserver. I will update the README later.

gbrlsnchs commented 5 years ago

No problem! I just want to confirm that everything went fine with vim-lsp and this LSP. Nice job! Closing...