clojure-lsp / clojure-lsp

Clojure & ClojureScript Language Server (LSP) implementation

Home Page:https://clojure-lsp.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow disabling external keyword exclusions

julienvincent opened this issue · comments

In version 2023.10.30-16.25.41 keywords that are considered external to the project are not included in static analysis.

As an example here are two very common scenarios for me:

  • I have projects with .edn config files that are outside of the configured project class-path. The .edn files do not get any syntax highlighting.

  • I spend a lot of time reading code that lives in external dependencies. When I use something like go-to-definition on a var that resolves to an external dependency then I have no syntax highlighting for the keywords defined in the dependency. This makes that experience a lot worse.

This frustrates me enough that I have stayed on version 2023.08.06-00.28.06 - but this obviously means I lose out on all the other improvements being made in the project.

I would rather have the syntax highlighting than improved performance. Could this behaviour of excluding highlighting for external keywords be made configurable? I would rather leave it on.