We now have a webpage for clojure-lsp
and its documentation 🎉, thanks for the huge help https://github.com/dcfrankel:
https://clojure-lsp.github.io/clojure-lsp/
Oh, cool 😄 Take your time 😉
I liked the Half-life-like 😛 ( λ )
Hah!
When @jayzawrotny finish the logo I'll update it too with the new one 😄
Got some sketches done but nothing that makes me think, “this is the one”. Will need to keep working at it.
How to limit the number of ns form to one when creating a new file?
@ericdallo This is what I have.
(use-package! clj-refactor
:after clojure-mode
:config
(setq cljr-add-ns-to-blank-clj-files nil)
(set-lookup-handlers! 'clj-refactor-mode nil))
but still the effect is sameThis is the exact config I have: https://github.com/ericdallo/dotfiles/blob/master/.doom.d/config.el#L97 :thinking-face:
Btw, Do you know how to make comapny-mode work with lsp?
@ericdallo ok, it seems that double entry ns is generated for cljs files. For clj files the option you provided works well
Hum, probably a bug on clj-refactor? @karol.wojcik the completion should work with company-mode normally AFAIK
Maybe. Regarding company mode i can spot that autocomplete works only after putting the namespace alias then space then <C-SPC>.. @ericdallo
Hum, what was the expected?
@ericdallo Now
(ns core.example
(:require
[core.ab :as ab]))
ab ab/ <-- now autocomplete works
Expected
(ns core.example
(:require
[core.ab :as ab]))
ab/ <-- Here it should work as well
Oh, so it only works when it has something before the token to complete
Yup
Weird behavior indeed, I just confirmed that for me it works :thinking-face:
Maybe some conflict with cider? is CIDER connected?
Nope. It's not. Maybe gccemacs?
Hum, I use gccemacs with doom-emacs too 😕
let me try with the same code as you
It seems to work for me:
Will try reinstalling emacs & doom
@ericdallo lul. Works after reinstall
:man-shrugging: hahah
@karol.wojcik this is a conflict that happens when you have both clj-refactor
and clojure-lsp
you need to choose which one you want to disable
More info here: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/#refactorings
Search for *Conflict with clj-refactor when creating new files*