Giter Club home page Giter Club logo

Comments (4)

predragnikolic avatar predragnikolic commented on June 21, 2024 1

The docs are missing the part to set "semantic_highlighting": true
https://lsp.sublimetext.io/customization/#semantic-highlighting

from lsp.

jwortmann avatar jwortmann commented on June 21, 2024

Have you enabled "semantic_highlighting": true in the LSP settings? (it's false by default)

Can you place the cursor inside s/defn and select Tools > Developer > Show Scope Name from the menu - there should be a "Semantic Token" section in the popup, if semantic tokens are enabled.

Could you post the exact response to the initialize (1) request from the LSP log panel, so we can see the exact capabilities of the clojure-lsp server?

from lsp.

predragnikolic avatar predragnikolic commented on June 21, 2024

Can you pasteg the LSP logs? (Run LSP: Toggle Log Panel from the Command Palette)

I am looking to see if the server announces support for semantic tokens.

Also, did you enable this LSP setting?

"semantic_highlighting": false,

from lsp.

prcastro avatar prcastro commented on June 21, 2024

It was indeed the "semantic_highlighting": true config missing. Maybe adding it to the documentation would make things more clear. Thanks for the help =D

And yes, clojure-lsp was announcing semantic tokens. On initialize I have:

'semanticTokens': {'requests': {'full': {'delta': True}, 'range': True},

And I have exactly one other log saying:

'semanticTokensProvider': {'full': True, 'legend': {'tokenTypes': ['namespace', 'type', 'function', 'macro', 'keyword', 'class', 'variable', 'method', 'event', 'interface'], 'tokenModifiers': ['definition', 'defaultLibrary', 'implementation']}, 'range': True}

from lsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.