This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-25
Channels
- # announcements (4)
- # asami (26)
- # babashka (82)
- # beginners (27)
- # biff (6)
- # boot (1)
- # calva (42)
- # cider (2)
- # clj-commons (1)
- # clj-http-lite (2)
- # clj-kondo (37)
- # cljdoc (1)
- # clojure (46)
- # clojure-europe (34)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (2)
- # clojurescript (54)
- # code-reviews (18)
- # cursive (2)
- # datalevin (32)
- # datomic (7)
- # etaoin (1)
- # fulcro (9)
- # gratitude (3)
- # hyperfiddle (15)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (32)
- # nrepl (1)
- # off-topic (18)
- # pathom (17)
- # pedestal (5)
- # polylith (89)
- # reitit (7)
- # releases (3)
- # remote-jobs (4)
- # shadow-cljs (52)
- # spacemacs (3)
- # squint (14)
- # tools-build (10)
- # tools-deps (18)
- # vim (4)
- # xtdb (34)
Is there a way to disable snippets in clojure-lsp? (perhaps by excluding the built-in ones and configuring no additional ones?)
maybe lsp-enable-snippet
? https://github.com/emacs-lsp/lsp-mode/commit/1800dac68f2a142ba551aa61037a0e35a85686db
I think related to :async-custom-lint?
, at some point, when I called codeAction
on a fully-qualified symbol, it would suggest Add require '[clojure.string :as str]' x 20
and the number would be the current number of times each suggested alias is used in the app. Now it only says '[clojure.string :as str] x 1
for each of the suggestions
1. Add require '[clojure.string :as cstr]' x 1
2. Add require '[clojure.string :as cstring]' x 1
3. Add require '[clojure.string :as s]' x 1
4. Add require '[clojure.string :as st]' x 1
5. Add require '[clojure.string :as str]' x 1
6. Add require '[clojure.string :as string]' x 1
I think this is "expected" on server side, we only show correctly the count for alias not full namespaces
Say you have a nested form with an undefined var x
used multiple times, would it make sense to automatically rename all of these x
s when you rename one via lsp?
Say I copied the body of this function from elsewhere, or the parameter was change to i
without lsp. I'd like to rename all x
s in the body to i
.
(defn foo [i]
(if (pos? x)
(inc x)
(dec x)))
I can see how convenient it may be, and maybe we don't even need to change anything on kondo, we could start supporting locals rename for undefined locals like that example
but not for:
(def foo)
bar
bar
trying to rename bar to foo, as that could be harder or not 100% acurategah, lsp is picking the wrong project root
I have a git repo that has another git repo within it (the nested one is ignored) and it's insisting the outer repo is the root
You can lsp-workspace-folders-remove to remove the outer project and then lsp to select the correct one
oh, nice tip!
thank you
i'll try that in a bit
I reinstalled doom emacs and it just works now so I don't even know
that was my guess, something about caching lsp directories
oh well, I'll fix it tomorrow