This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-02
Channels
- # announcements (26)
- # architecture (29)
- # babashka (8)
- # beginners (91)
- # calva (70)
- # cider (7)
- # circleci (2)
- # cljs-dev (1)
- # clojure (79)
- # clojure-australia (2)
- # clojure-dev (3)
- # clojure-europe (40)
- # clojure-italy (2)
- # clojure-losangeles (4)
- # clojure-nl (4)
- # clojure-uk (4)
- # clojurescript (34)
- # cursive (13)
- # datomic (16)
- # defnpodcast (2)
- # emacs (11)
- # events (1)
- # fulcro (13)
- # graalvm (17)
- # gratitude (3)
- # instaparse (10)
- # introduce-yourself (2)
- # jobs (1)
- # jobs-discuss (5)
- # juxt (3)
- # kaocha (5)
- # meander (5)
- # membrane (2)
- # nextjournal (43)
- # off-topic (42)
- # pathom (52)
- # pedestal (8)
- # portal (3)
- # rdf (2)
- # re-frame (10)
- # reveal (21)
- # shadow-cljs (56)
- # slack-help (7)
- # vim (33)
- # xtdb (43)
I recently switched from coc to using nvim's lspconfig and cmp for completion. Does anyone have working docstrings and jump-to-definition with this? Neither work for me.
can you see the input/output of the lsp and nvim?
that should tell you if it’s sending the right info back and forth
:LspInfo shows it to be attached Client: clojure_lsp (id: 1, pid: 62243, bufnr: [1, 20])
i don’t know anything about neovim’s lsp stuff, so i can’t help you there
but with coc, i can set verbose: true
in clojure-lsp’s settings and that’ll get sent on initialization, which then logs to some place that clojure-lsp uses (which you can also change with ~/.lsp/config.edn
i think)
good luck
also I should clarify: jump to definition works for local definitions, just not for libraries
oh, okay
yeah i can’t get that to work with coc either, so i don’t know lol
yeah I have the same problem, just the first go to definition works, when I'm inside a lib I need to use #conjure go to definition (nrepl)
@nbtheduke I had it working with coc, you have to add 'jar' and 'zipfile' to languageserver.clojure-lsp.additionalSchemes I think
Woah! Holy crap, okay, I gotta try this
You do this in the coc config? Or in the .lsp/config?
@rafaeldelboni do docstrings work for you?
Inside lib? Never tried
But otherwise yes
I'm not getting docstrings for clojure.core stuff. Is your dotfiles public or are you passing anything special to clojure_lsp.setup?
Anyway my dotfiles are public if you want to check it out haha https://github.com/rafaeldelboni/dotfiles/tree/master/config/nvim
that's what bothers me the most. it works for locally defined functions, but not for clojure.core stuff
both things work with python and pyright, so it's definitely clojure-lsp or neovim's integration with it