addcninblue / conjure

Interactive evaluation for Neovim (Clojure, Fennel, Janet, Racket, Hy, MIT Scheme, Guile)

Home Page:https://conjure.fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord

Conjure is an interactive environment for evaluating code within your running program.

The core features of Conjure are language agnostic (although it’s targeted at Lisps for now), with each language client providing their own extra tools. Here’s the currently supported languages, contributions and 3rd party plugins that add clients are highly encouraged! You can find a comparison table for all clients and supported features in the wiki.

You can learn more about the mappings and configuration inside Neovim with :help conjure. Each language client also has it’s own specific help text under :help conjure-client-{LANGUAGE}-{TRANSPORT}, such as :help conjure-client-clojure-nrepl, which contains specific mappings and configuration for that client.

You can also get an interactive guide to the core principals and mappings by executing :ConjureSchool or by using the "try before you install" script as described further down this page.

User experience

What does wielding Conjure actually look like? What can you do with it?

asciicast

  • Open a file of a supported file type such as clojure or racket.

  • Some languages, such as Clojure, will automatically connect to your REPL or give you the commands and mappings to do so yourself.

  • Use various mappings to execute the code you’re interested in such as the current form, file, buffer or even form at a Neovim mark.

  • Every result is kept in a log buffer that you can access at any time.

  • Support for multiple asynchronous autocompletion frameworks, with deoplete built in (<C-x><C-o> also works!).

Conjure allows you to send the right part of your code off for evaluation, see the results, wrap the results in more code and evaluate that. It keeps a log of your actions and results so you don’t have to remember them, that context is extremely helpful when you’re down the rabbit hole of a bug hunt.

Evaluating a form under your cursor is as simple as <prefix>ee, where <prefix> defaults to <localleader>. Be sure to set your your <localleader> key or configure Conjure to use a different mapping prefix, see :h maplocalleader and :h g:conjure#mapping#prefix for more information.

The goal is to give you a tool that lets you effortlessly run whatever you need to while keeping out of your way (but there with context and more information if you need it).

Once installed you can run :ConjureSchool to begin an interactive tutorial.

Try without installing

You can trial run Conjure with the interactive :ConjureSchool tutorial without actually installing it! The only prerequisites are curl and an up to date nvim.

curl -fL conjure.fun/school | sh

This will temporarily download the plugin, launch Neovim with :ConjureSchool running and then clean up after itself. You get to try out what Conjure has to offer without having to edit your Neovim configuration.

Installation

Requires Neovim 0.5 or newer.

Alternatively you can use Magic Kit, an opinionated starter kit that includes all sorts of essential tools.

use 'Olical/conjure'
Plug 'Olical/conjure'

Getting started

All further documentation is found within :help conjure. You can also use :ConjureSchool to get an interactive introduction to the workflow and mappings Conjure provides.

Please do get in touch via Discord or Twitter if you have any questions or issues.

Broader documentation can be found in the Conjure wiki, there you’ll find blog posts and guides that will help you get common workflows up and running. Contributions are encouraged!

Clients of tomorrow

These are clients I intend to build eventually or encourage another community member to build and maintain on my behalf. Every language we add creates another bridge between communities, I would like Conjure to be common ground between all of our beloved esoteric REPL based languages.

Behind the curtain

Conjure is written entirely in Lua (no VimL or external processes!) which is compiled from Fennel by Aniseed ahead of time. Check out CONTRIBUTING.adoc for more on how to work on Conjure using itself.

Historically, Conjure was Clojure specific with an entirely different implementation, you can still find that version on the legacy-jvm branch.

Unlicenced

Find the full unlicense in the UNLICENSE file, but here’s a snippet.

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

About

Interactive evaluation for Neovim (Clojure, Fennel, Janet, Racket, Hy, MIT Scheme, Guile)

https://conjure.fun

License:The Unlicense


Languages

Language:Lua 67.3%Language:Fennel 30.6%Language:Hy 0.8%Language:Clojure 0.5%Language:Shell 0.3%Language:Common Lisp 0.2%Language:Nix 0.1%Language:Makefile 0.1%Language:Python 0.1%Language:Janet 0.1%Language:Dockerfile 0.0%Language:HTML 0.0%Language:Racket 0.0%Language:Scheme 0.0%Language:Vim Script 0.0%