lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
ericdallo 2021-01-11T01:07:04.250800Z

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/

🙏 1
🎉 1
ericdallo 2021-01-11T11:54:22.253100Z

Oh, cool 😄 Take your time 😉

ericdallo 2021-01-11T12:08:40.253300Z

I liked the Half-life-like 😛 ( λ )

2021-01-11T19:51:07.256100Z

Hah!

ericdallo 2021-01-11T01:08:13.251300Z

When @jayzawrotny finish the logo I'll update it too with the new one 😄

2021-01-11T01:20:23.252700Z

Got some sketches done but nothing that makes me think, “this is the one”. Will need to keep working at it.

Karol Wójcik 2021-01-11T12:44:01.254200Z

How to limit the number of ns form to one when creating a new file?

Karol Wójcik 2021-01-12T17:43:54.257500Z

@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 same

ericdallo 2021-01-12T17:51:42.257700Z

This is the exact config I have: https://github.com/ericdallo/dotfiles/blob/master/.doom.d/config.el#L97 :thinking-face:

Karol Wójcik 2021-01-12T18:12:53.258Z

Btw, Do you know how to make comapny-mode work with lsp?

Karol Wójcik 2021-01-12T18:19:57.258300Z

@ericdallo ok, it seems that double entry ns is generated for cljs files. For clj files the option you provided works well

ericdallo 2021-01-12T18:29:23.258600Z

Hum, probably a bug on clj-refactor? @karol.wojcik the completion should work with company-mode normally AFAIK

Karol Wójcik 2021-01-12T21:05:48.258800Z

Maybe. Regarding company mode i can spot that autocomplete works only after putting the namespace alias then space then <C-SPC>.. @ericdallo

ericdallo 2021-01-13T14:04:37.263Z

Hum, what was the expected?

Karol Wójcik 2021-01-13T17:03:30.263400Z

@ericdallo Now

(ns core.example
  (:require 
     [core.ab :as ab]))

ab ab/ &lt;-- now autocomplete works
Expected
(ns core.example
  (:require 
     [core.ab :as ab]))

ab/ &lt;-- Here it should work as well

ericdallo 2021-01-13T17:04:13.263700Z

Oh, so it only works when it has something before the token to complete

Karol Wójcik 2021-01-13T17:04:54.263900Z

Yup

ericdallo 2021-01-13T17:05:52.264100Z

Weird behavior indeed, I just confirmed that for me it works :thinking-face:

ericdallo 2021-01-13T17:06:18.264300Z

Maybe some conflict with cider? is CIDER connected?

Karol Wójcik 2021-01-13T17:07:05.264500Z

Nope. It's not. Maybe gccemacs?

ericdallo 2021-01-13T17:07:27.264800Z

Hum, I use gccemacs with doom-emacs too 😕

ericdallo 2021-01-13T17:07:37.265Z

let me try with the same code as you

ericdallo 2021-01-13T17:09:48.265200Z

It seems to work for me:

Karol Wójcik 2021-01-13T17:11:20.265600Z

Will try reinstalling emacs & doom

🤞 1
Karol Wójcik 2021-01-13T23:15:15.266500Z

@ericdallo lul. Works after reinstall

ericdallo 2021-01-13T23:15:41.266700Z

:man-shrugging: hahah

ericdallo 2021-01-11T12:48:26.254300Z

@karol.wojcik this is a conflict that happens when you have both clj-refactor and clojure-lsp

ericdallo 2021-01-11T12:48:36.254500Z

you need to choose which one you want to disable

ericdallo 2021-01-11T12:49:17.254700Z

More info here: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/#refactorings Search for *Conflict with clj-refactor when creating new files*