conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
Niklas 2021-06-01T08:58:46.112200Z

let g:conjure#mapping#def_word = ["gd"] seems to work for me, but the default config let g:conjure#mapping#def_word = "gd" doesn't. Am I doing something wrong?

Olical 2021-06-01T08:59:42.112300Z

That's prefixed with the conjure prefix by default, is that not working? I had people complain that overriding the bare mapping of gd by default was bad practice and conflicted with things. So I made it prefixed by default.

Niklas 2021-06-01T09:01:05.113100Z

ahaaa, I guess I can learn that, I didn't understand that it was prefixed

Olical 2021-06-01T09:01:32.113400Z

You can always unprefix if it's okay in your setup 😊

Niklas 2021-06-01T09:01:34.113500Z

yep, prefixed <localleader>gd works as it should

Niklas 2021-06-01T09:02:12.114300Z

I'm not sure what is best in the long run, I'll probably use prefix for now

Olical 2021-06-01T09:02:31.114400Z

If you

Olical 2021-06-01T09:02:55.114500Z

I meant to say, if you use LSP at some point that may assume gd by default. All I can think of.

Olical 2021-06-01T09:03:31.114900Z

I'll one day swap it all out for <plug> mappings and that config will make a lot more sense I think

Olical 2021-06-01T09:03:39.115200Z

One day!

Niklas 2021-06-01T09:03:41.115300Z

it seems the purpose of localleader is to have file type specific commands, so I can buy that I should be using it with conjure

Olical 2021-06-01T09:03:53.115400Z

Yup! Precisely

Niklas 2021-06-01T09:04:21.116Z

but yeah, eventually if one has LSP servers for all languages, maybe it makes sense that they all should use unprefixed 😛

Olical 2021-06-01T09:08:23.116100Z

Yeah, I think semantically that makes sense. Conjure handles evaluation and only evaluation, LSP is more of the IDE like features across the board.

Niklas 2021-06-01T09:11:13.116500Z

thank you for building conjure, it really helps when developing clojure in vim

2021-06-01T09:55:28.117Z

I've seen gd remapped to coc-definition or something along those lines

dharrigan 2021-06-01T09:58:34.117400Z

This is what I have in my vim config

dharrigan 2021-06-01T09:58:36.117600Z

nmap &lt;silent&gt; gd &lt;Plug&gt;(coc-definition)

borkdude 2021-06-01T12:36:00.118100Z

bb 0.4.4 is released which should give a better error context with the nREPL server (cc @olical)

❤️ 1
Niklas 2021-06-01T15:10:19.119Z

do you recommend that one uses both an nREPL and a LSP in vim?

👍 1
dave 2021-06-01T16:36:29.119400Z

^This is what I do. It's a winning combination of static analysis and REPL context awareness.

dharrigan 2021-06-01T16:43:19.119900Z

Yup, I do that too. They make a great team.

2021-06-01T19:26:24.120500Z

holy crap: nvim $(mktemp --suffix=".clj") + auto-bb repl is the scratch buffer I've always wanted!!!!

👍 1
😁 2
🎉 1