This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-17
Channels
- # adventofcode (25)
- # announcements (2)
- # babashka (16)
- # babashka-sci-dev (16)
- # beginners (213)
- # calva (15)
- # clj-kondo (126)
- # clj-on-windows (1)
- # cljdoc (5)
- # cljfx (1)
- # cljs-dev (6)
- # clojure (230)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-uk (3)
- # conjure (10)
- # core-async (15)
- # cursive (33)
- # fulcro (58)
- # hyperfiddle (4)
- # jobs-discuss (1)
- # kaocha (5)
- # lsp (46)
- # meander (3)
- # off-topic (30)
- # polylith (10)
- # portal (9)
- # re-frame (5)
- # reitit (7)
- # releases (2)
- # ring (17)
- # sci (8)
- # shadow-cljs (6)
- # specter (1)
- # sql (1)
- # testing (9)
- # tools-deps (4)
- # vim (12)
Anyone have an example of how coc-settings.json should look like to make clojure-lsp understand a deps edn project?
This is my current lsp config:
"languageserver": {
"clojure-lsp": {
"command": "clojure-lsp",
"filetypes": ["clojure"],
"disableDiagnostics": false,
"rootPatterns": ["deps.edn", "project.clj"],
"additionalSchemes": ["jar", "zipfile"],
"trace.server": "verbose",
"initializationOptions": {
"project-specs": [{
"project-path": "project.clj",
"classpath-cmd": ["lein", "classpath"]
}],
"use-metadata-for-privacy?": true,
"ignore-classpath-directories": true
}
},
The immediate problem I'm trying to solve is being able to run with both lein and and the clojure command line
clojure-lsp has already good defaults for project-specs: https://github.com/clojure-lsp/clojure-lsp/blob/master/src/clojure_lsp/settings.clj#L19-L28
not to toot my own horn too much, but I wrote coc-clojure (https://github.com/NoahTheDuke/coc-clojure) to make using clojure-lsp easier for coc
I actually really appreciate horn tooting here as much as possible, it can be pretty hard to keep up with the great improvements now with neovim, lsp, conjure and all that
glad to help!