2021-06-05 21:34:40 +02:00
2021-06-05 18:40:25 +02:00
2021-06-05 18:40:25 +02:00
2021-06-05 18:40:25 +02:00
2021-06-05 18:40:25 +02:00
2021-06-05 21:34:40 +02:00
2021-06-05 21:34:40 +02:00

ConjureMacroexpand

Adds commands ConjureMacroexpand, ConjureMacroexpand0 and ConjureMacroexpand1 that will macro-expand the form under the cursor, using Conjure's REPL connection.

This is the one bit of functionality missing from Conjure that kept vim-fireplace in my Neovim config.

Installation

Using vim-plug:

Plug 'walterl/conjure-macroexpand'

Mappings

  • <LocalLeader>cm - Calls clojure.walk/macroexpand-all on the form under the cursor.
  • <LocalLeader>c0 - Calls clojure.core/macroexpand on the form under the cursor.
  • <LocalLeader>c1 - Calls clojure.core/macroexpand-1 on the form under the cursor.

Configuration

Disable mappings:

set g:conjure_macroexpand_disable_mappings = 1

Unlicenced (just like Conjure)

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.

Description
a personal expansion to conjure.nvim adds macro expansions for code gen
Readme 357 KiB
Languages
Lua 95.2%
Fennel 4.6%
Shell 0.1%
Makefile 0.1%