GithubHelp home page GithubHelp logo

Comments (4)

yveszoundi avatar yveszoundi commented on June 15, 2024

Maybe.a function is desirable instead of a custom variable (e.g., eglot-java-initialization-options).

What if the user wants to dynamically configure LSP workspaceFolders based on project root details?

from eglot-java.

yveszoundi avatar yveszoundi commented on June 15, 2024

From a documentation standpoint, users also need to understand 2 points:

  • What is the LSP initialization request syntax from an emacs perspective?
  • What are the available LSP server settings that can be initialized?

Emacs initialization request syntax

  • Users need to understand the key elements of the iniialization request sent to the LSP server
  • Users need to understand that the initialization request is a property list with keys set as keywords
    • Key syntax: :key (e.g., :java)
    • Key entry example: (:java (:home "/usr/share/jdk21"))
    • Instead of curly braces in JSON, you use parenthesis for "child objects"
    • For boolean false values, you use :json-false instead of nil, and t for true.

LSP initialization request settings

Users can customize several LSP server settings for the Eclipse JDT LS server.

from eglot-java.

yveszoundi avatar yveszoundi commented on June 15, 2024

The eglot-workspace-configuration variable (buffer local) also seems to be a viable approach, but limited too.

  • Defaults can be set via setq-default
  • For project-specific configuration, values can be customized with directory local variables

eglot-workspace-configuration only impacts the settings node of the LSP configuration.
There are 4 overall top-level nodes for the LSP configuration:

from eglot-java.

yveszoundi avatar yveszoundi commented on June 15, 2024

Addressed in commit dfd2755

from eglot-java.

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.