Lsp-mode: Semantic highlighting while typing

Created on 16 Jan 2020  路  3Comments  路  Source: emacs-lsp/lsp-mode

I notice that the semantic highlighting isn't updating while I type, it only updates if I re-run lsp. Is there some option that controls this?

All 3 comments

Answered in gitter

Can you reproduce the solution in here for the sake of searchability? thanks!

Ah yes, sorry about that. It is the responsibility of the language server to expose the capability. lsp-mode will automatically send the updates while you type and apply the semantic highlights if the language server announces the capability. If this isn't working for you for some language it's very likely the language server isn't announcing the capability, check the initial json payload sent by the server in your debug logs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

axelson picture axelson  路  4Comments

josh-janrain picture josh-janrain  路  5Comments

glepnir picture glepnir  路  4Comments

raxod502 picture raxod502  路  4Comments

sid-kap picture sid-kap  路  5Comments