This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-11
Channels
- # announcements (2)
- # babashka (27)
- # beginners (99)
- # biff (16)
- # calva (15)
- # clj-kondo (6)
- # clj-on-windows (38)
- # clojure (54)
- # clojure-austin (1)
- # clojure-europe (30)
- # clojure-france (4)
- # clojure-nl (1)
- # clojure-norway (43)
- # clojure-spec (10)
- # conjure (28)
- # core-async (4)
- # cursive (7)
- # figwheel-main (1)
- # graphql (9)
- # gratitude (3)
- # honeysql (9)
- # introduce-yourself (1)
- # jobs (1)
- # joyride (128)
- # lambdaisland (2)
- # malli (8)
- # membrane (12)
- # nbb (5)
- # off-topic (1)
- # polylith (11)
- # re-frame (9)
- # reitit (1)
- # remote-jobs (5)
- # sci (15)
- # shadow-cljs (50)
- # tools-deps (2)
- # xtdb (12)
Getting back into clojure and onto conjure! One noob question — unrelated to conjure but thought folks here would know; I guess most of us use clojure-lsp + coc? Main question: is there a “quick fix” window that I could make nvim pop up, based on clojure lsp? i.e I know clojure-lsp has an “import missing library” function. This gets suggested by calva for example. What’s the way to do this in nvim?
And here are some examples of mappings: https://github.com/dharrigan/vimconfig/blob/0c50b98c7d07f14734ce7b1979ed40840bdf2304/custom/600-mappings.vim#L100
Beautiful, thanks @dharrigan!
@dharrigan Interesting -- coming close. I set up an example where in calva I get the correct “quickfix” suggestion. But in nvim if I call coc-codeaction-cursor, I get these options.
I belive it's dependent on where the cursor is, for example, in clojure-lsp the "Resolve macro as..." is marked as a quick-fix
Okay will play. final noob question while I have you: I just updated neovim, and now if I get a floating window of suggestions (see screenshot) I no longer know how to cycle through the options and choose. I used to be able to use up and down arrow. Do you happen to know the way to “cycle” the choice in the floating window?
You may want to have a look at my overall vimconfig for some ideas if that is helpful
Here is what I am seeing: If I am in insert mode, the floating window shows up, but I can’t type shift j or k without it inserting something. Maybe I need to start fresh
I now realize that it is cycling if I do up and down arrows (just the theme doesn’t do a good job) — but now I am not sure how to select it
Aha! I needed to do
inoremap <silent> <expr><cr> coc#pum#visible() ? coc#_select_confirm() : "\<CR>"
^ taken from your config — thanks @dharrigan!