This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-15
Channels
- # aws (25)
- # babashka (2)
- # babashka-sci-dev (3)
- # beginners (39)
- # clj-kondo (69)
- # cljdoc (2)
- # clojars (6)
- # clojure (13)
- # clojure-dev (8)
- # clojure-europe (3)
- # clojure-uk (1)
- # clojurescript (6)
- # datomic (3)
- # honeysql (5)
- # introduce-yourself (3)
- # lsp (10)
- # malli (8)
- # membrane (16)
- # off-topic (8)
- # pedestal (6)
- # re-frame (28)
- # releases (3)
- # shadow-cljs (10)
- # tools-deps (38)
hey y’all, is there a way to configure lsp-mode to auto-add namespace requires?
but most of the time, the code actions will work lsp-execute-code-action
Add require
whoa thanks for the quick reply 🙂 I’m not sure what you mean about completion?
I’ve noticed when I type str/
for example then it will require clojure.string :as str
. But if I type another common alias ns in my project, e.g. app/
then it won’t add that require
if you type str/anything, clojure-lsp will suggest a code action, you can access it with lsp-execute-code-action
or SPC c a
if using doom-emacs
Check second gif: https://clojure-lsp.io/features/#code-actions
thank you so much 🙂