Hello, glad to be here again. Have some question spinning in my head: before jump into conjure fully, does anyone who use it professionally (I believe someone is) has a link to an article or just share ideas here of: • how to setup conjure • which extra plugin to use (open clojuredoc, javadoc, format code, autocomplete (found coc-conjure)), autogen ns when visit a new buffer, etc • how to organize a productive workflow (both clj, cljs) Any suggestions are acceptable 😉 not necessary covered all the bullets
https://github.com/Olical/conjure/wiki#guides-posts-recipes-and-tricks One of my own blog posts is in there: https://blog.djy.io/conjuring-clojure-in-vim-2020-edition/
I use Conjure every day at work.
I didn't go into things like which extra plugins I use in that blog post - I was basically just describing how to get started with Conjure, what it can do, and the things that I like about it, including eval-at-mark.
As far as what plugins to use, that will vary depending on who you ask. There are a lot of great tools out there. Personally, I use: https://github.com/eraserhd/parinfer-rust https://github.com/neoclide/coc.nvim https://github.com/jlesquembre/coc-conjure https://github.com/guns/vim-sexp https://github.com/tpope/vim-sexp-mappings-for-regular-people
I love parinfer, but it is sadly rendered useless for me due to the undo bug: https://github.com/eraserhd/parinfer-rust/issues/93. Do you experience it? If yes, do you have any workarounds to suggest?
Basically, I don't experience that problem anymore. But when I was experiencing it, it wasn't often because I am not in the habit of undoing more than a couple of times in a row.
Alright, thanks:) It is crucial in my workflow to test out silly things and then undoing my way back to the last stable state, which is why this bug is so inhibiting for me.
I have my vimconfig online here <https://github.com/dharrigan/vimconfig>
which shows the plugins I use here <https://github.com/dharrigan/vimconfig/blob/master/custom/300-plugins.vim>
. I think most people use the same 🙂
Is coc-conjure
still needed, if one is using clojure-lsp
I wonder?
I think they're complementary. I have both clojure-lsp and conjure as sources for autocompletion, etc.
do they not conflict? Or what does coc-conjure give you that clojure-lsp doesnt?
coc-conjure is REPL-aware. clojure-lsp is solely based on static analysis.
I'm always happy to whack in a few more plugins if I have FOMO! 🙂
I have it configured so that if they both provide the same value, I prefer Conjure's.
So you have this set? <https://github.com/neoclide/coc.nvim/issues/1184#issuecomment-533937855>
Yep: https://github.com/daveyarwood/dotfiles/blob/master/vim/nvim/coc-settings.json
Interesting. I must re-evaluate
"coc.source.conjure.priority": 999999
and "suggest.removeDuplicateItems": true
Interestingly enough, I have those in my coc-settings too
I must have removed coc-conjure at some point
I personally use nvim-compe for completion these days but that's neovim 0.5+ only. I need to add first class support for it really, Tami has a repo that I'd like to integrate.
I need to hop on the LSP train at some point 😅
🚂
I want to keep out of LSP's domain as much as possible, use static analysis and lean on shared tooling for LSP stuff and Conjure fills in the gaps of live evaluation etc
You know what, I do already use coc-conjure
what threw me is the link to the repo
of course, it's a coc extension!
so I have it already installed via coc!
Yeaaaah
I never liked that I had to think about JavaScript things for a vim plugin and I didn't like that I only wanted the completion, not the LSP bit.
So it felt conflated? Compe is just completion which is all I wanted really
*complected
complect
🙂
:rich:
:rich2:
Precisely
I think it's after 10 years of Clojure your hair goes all Hickey
I'm yet to get myself a hammock too
I'm nearly there. I've let my hair grow out, aka Covid Hair
I'm naturally curly too 🙂
bookmarking all these config posts, I need to revisit mine : )
Great ideas, I probably also should publish some dotfiles and a post but it's too much work in progress now 🙂
Would probably help peoples self esteem if nothing else .. 🙂