You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,52 @@ Custom snippets in Clojure LSP format (EDN). Practicalli designed snippets to e
7
7
Clone the repository to the user level configuration location for Clojure LSP, either `$XDG_CONFIG_HOME/clojure-lsp` or if `XDG_CONFIG_HOME` is not set, `$HOME/.config/clojure-lsp`
8
8
9
9
10
+
## Clojure LSP configuration
11
+
12
+
Include `:extra-paths` and `:extra-deps` from project & user level aliases in LSP classpath. e.g. support a custom `user` namespace in `dev/user.clj`
Clean namespace `ns` forms but do not sort require names
28
+
29
+
```clojure
30
+
:clean {:automatically-after-ns-refactortrue
31
+
:ns-inner-blocks-indentation:next-line
32
+
:ns-import-classes-indentation:next-line
33
+
:sort {:nsfalse
34
+
:requirefalse
35
+
:importfalse
36
+
:import-classes {:classes-per-line3} ;; -1 for all in single line
37
+
:refer {:max-line-length80}}}
38
+
```
39
+
40
+
41
+
Use `^private` metadata for private function definitions rather than `defn-`
42
+
43
+
```clojure
44
+
:use-metadata-for-privacy?true
45
+
```
46
+
47
+
Location of [cljfmt configuration](cljfmt.edn) for formatting, path relative to project root. The defaults for cljfmt are used, except `:remove-consecutive-blank-lines?` which is set to false to enable more readable code.
48
+
49
+
```clojure
50
+
:cljfmt-config-path"cljfmt.edn"
51
+
```
52
+
53
+
> [cljfmt configuration](cljfmt.edn) included example `:indents` rules for clojure.core, compojure, fuzzy rules and examples used by the Clojure LSP maintainer.
54
+
55
+
10
56
## Custom snippets
11
57
12
58
[Snippets created by Practicalli](https://practical.li/spacemacs/snippets/clojure-lsp/practicalli-snippets.html) are documents in [Practicalli Spacemacs](https://practical.li/spacemacs/snippets/clojure-lsp/practicalli-snippets.html)
0 commit comments