vscode-langservers / vscode-html-languageserver-bin

Binary version published on npm of vscode-html-languageserver extracted from VSCode tree
MIT License
36 stars 10 forks source link

Documentation? #1

Closed rwatts3 closed 6 years ago

rwatts3 commented 7 years ago

Is there any documentation on how to use the language servers outside of vscode ? Are they standard language servers.

DeltaEvo commented 7 years ago

Yes they are standard language servers, you can run them with

npm install -g vscode-html-languageserver-bin
html-languageserver --stdio

But for the moment I want to setup them with neovim and https://github.com/autozimu/LanguageClient-neovim before writing the doc

rwatts3 commented 7 years ago

Perfect thank you On Fri, Sep 15, 2017 at 8:10 AM David Duarte notifications@github.com wrote:

Yes they are standard language servers, you can run them with

npm install -g vscode-html-languageserver-bin html-languageserver --stdio

But for the moment I want to setup them with neovim and https://github.com/autozimu/LanguageClient-neovim before writing the doc

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vscode-langservers/vscode-html-languageserver-bin/issues/1#issuecomment-329810747, or mute the thread https://github.com/notifications/unsubscribe-auth/AFFsSUcNyUnebw_vjlIWoRg-2akV-ZtQks5sipNfgaJpZM4PVPHt .

--

-V/R

Ryan Watts

rwatts3 commented 7 years ago

Any instructions or tests with atom ? On Fri, Sep 15, 2017 at 9:12 AM Ryan Watts ryandwatts@gmail.com wrote:

Perfect thank you On Fri, Sep 15, 2017 at 8:10 AM David Duarte notifications@github.com wrote:

Yes they are standard language servers, you can run them with

npm install -g vscode-html-languageserver-bin html-languageserver --stdio

But for the moment I want to setup them with neovim and https://github.com/autozimu/LanguageClient-neovim before writing the doc

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vscode-langservers/vscode-html-languageserver-bin/issues/1#issuecomment-329810747, or mute the thread https://github.com/notifications/unsubscribe-auth/AFFsSUcNyUnebw_vjlIWoRg-2akV-ZtQks5sipNfgaJpZM4PVPHt .

--

-V/R

Ryan Watts

--

-V/R

Ryan Watts

DeltaEvo commented 7 years ago

I don't use Atom but I will try to setup it this week end. You want to use this LanguageServer with the new atom-ide ?

rwatts3 commented 7 years ago

Correct, I have it setup in a plugin already , probably not published to github. However this language server along with other seems to contain configuration and setup that specifically talk to vscode.

gadkadosh commented 7 years ago

Hi, thanks for that! I just installed this to test with Neovim - seems to work well!

davidsierradz commented 7 years ago

Did you managed to configure the autocompletion for HTML?

sudo npm install -g vscode-html-languageserver-bin
let g:LanguageClient_serverCommands = {}
let g:LanguageClient_serverCommands.html = ['html-languageserver', '--stdio']

Inside a HTML file:

:LanguageClientStart :set omnifunc=LanguageClient#complete

This is working:

:call LanguageClient_textDocument_hover()

The autocompletion not much.

gadkadosh commented 7 years ago

I get tag suggestions in HTML files, using deoplete, and I see it comes from the Language Client. Not sure about omnicomplete though - I get results but from source 'm'. I don't know what else should be completed in HTML, I don't see attribute names being suggested by LC.

DeltaEvo commented 7 years ago

Completion with this language server need snippets supports, currently LanguageClient_neovim support snippets only with NCM (full support) and Deoplete (Partial Support) However completion should not work with LanguageClient_neovim because it dosen't send client capabilities. I modified it locally but I dosen't sent a PR yet I will try to add documentation and send a PR to LanguageClient_neovim this week end

DeltaEvo commented 6 years ago

I added some setup instructions in the README