https://github.com/walterl/conjure-macroexpand
Macro-expand commands for Conjure
https://github.com/walterl/conjure-macroexpand
aniseed clojure clojure-repl conjure fennel neovim neovim-plugin
Last synced: 4 months ago
JSON representation
Macro-expand commands for Conjure
- Host: GitHub
- URL: https://github.com/walterl/conjure-macroexpand
- Owner: walterl
- License: mit
- Created: 2021-06-05T19:36:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-25T14:10:07.000Z (over 3 years ago)
- Last Synced: 2024-11-16T18:34:23.486Z (over 1 year ago)
- Topics: aniseed, clojure, clojure-repl, conjure, fennel, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 104 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
**DEPRECATED**, because [Conjure now supports this](https://github.com/Olical/conjure/blob/8c51801a9f2bc95be0e1a38c971b7177b009d0f6/doc/conjure-client-clojure-nrepl.txt#L372) natively.
# ConjureMacroexpand
Adds commands `ConjureMacroexpand`, `ConjureMacroexpand0` and
`ConjureMacroexpand1` that will macro-expand the form under the cursor, using
[Conjure](https://github.com/Olical/conjure)'s REPL connection.
This is the one bit of functionality missing from Conjure that kept
[vim-fireplace](https://github.com/tpope/vim-fireplace/) in my Neovim config.
## Installation
Using [vim-plug](https://github.com/junegunn/vim-plug):
```viml
Plug 'walterl/conjure-macroexpand'
```
## Mappings
* `cm` - Calls `clojure.walk/macroexpand-all` on the form under the cursor.
* `c0` - Calls `clojure.core/macroexpand` on the form under the cursor.
* `c1` - Calls `clojure.core/macroexpand-1` on the form under the cursor.
## Configuration
Disable mappings:
```viml
set g:conjure_macroexpand_disable_mappings = 1
```
## License
[MIT](./LICENSE.md)