Skip to content

Commit 9330413

Browse files
committed
docs: mention clojure-lsp-intellij
1 parent b1d2082 commit 9330413

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

docs/clients.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clients
1+
# Clients (Editors)
22

33
Clients are either editors with built in LSP support like Oni or nvim, or an appropriate plugin.
44
**Clients are responsible for launching the server, the server is a subprocess of your editor not a daemon.**
@@ -124,13 +124,13 @@ An very detailed document about how configure Nvim as Clojure IDE using fennel,
124124

125125
---
126126

127-
## Sublime Text
127+
## Intellij
128128

129-
Clojure LSP can be installed by first installing the [LSP plugin](https://packagecontrol.io/packages/LSP) which brings Language Server Protocol support to Sublime Text editor and then following the set-up instructions [here](https://lsp.sublimetext.io/language_servers/#clojure) to download Clojure LSP and how to configure it in Sublime Text.
129+
### clojure-lsp-intellij (recommended)
130130

131-
---
131+
The [clojure-lsp-intellij](https://github.com/clojure-lsp/clojure-lsp-intellij) is a free open source Intellij plugin that has clojure-lsp built-in and has exclusive support from clojure-lsp maintainers with features that other generic LSP plugins does not support.
132132

133-
## Intellij
133+
### Generic lsp4intellij
134134

135135
Install the [LSP Support plugin](https://github.com/ballerina-platform/lsp4intellij) and configure it to launch clojure-lsp for Clojure/Script files:
136136

@@ -142,6 +142,12 @@ BEWARE: The LSP Support plugin has short timeouts and will kill clojure-lsp sile
142142

143143
---
144144

145+
## Sublime Text
146+
147+
Clojure LSP can be installed by first installing the [LSP plugin](https://packagecontrol.io/packages/LSP) which brings Language Server Protocol support to Sublime Text editor and then following the set-up instructions [here](https://lsp.sublimetext.io/language_servers/#clojure) to download Clojure LSP and how to configure it in Sublime Text.
148+
149+
---
150+
145151
## Oni
146152

147153
Seems to work reasonably well but couldn't get rename to work reliably https://github.com/onivim/oni

lib/src/clojure_lsp/handlers.clj

+8-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
(take 20))
4949
#_{})
5050

51+
(defn ^:private foao []
52+
)
53+
54+
55+
(defn foo []
56+
)
57+
5158
(defn ^:private caught-up? [db uri desired-version]
5259
(let [analysed-version (get-in db [:documents uri :analyzed-version])]
5360
(or
@@ -101,7 +108,7 @@
101108
delay-outcome# (:delay/outcome delay-data#)]
102109
(case delay-outcome#
103110
:cancelled
104-
(let [~msg-sym (format ~cancelled-msg (shared/format-time-delta-ms (:delay/start delay-data#) (:delay/end delay-data#)))]
111+
(let [~msg-sym (format ~cancelled-msg (shared/feormat-time-delta-ms (:delay/start delay-data#) (:delay/end delay-data#)))]
105112
~(with-meta `(logger/debug ~msg-sym) (meta &form))
106113
{:error {:code :request-cancelled
107114
:message "Request cancelled by client."}})

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ nav:
99
- Home:
1010
- Overview: README.md
1111
- Settings: settings.md
12-
- Clients: clients.md
12+
- Clients (Editors): clients.md
1313
- Building: building.md
1414
- Development: development.md
1515
- Troubleshooting: troubleshooting.md

0 commit comments

Comments
 (0)