https://github.com/codebeige/canvas.nvim
https://github.com/codebeige/canvas.nvim
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/codebeige/canvas.nvim
- Owner: codebeige
- License: mit
- Created: 2024-09-24T09:45:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-22T14:10:28.000Z (about 1 year ago)
- Last Synced: 2024-12-22T14:32:41.409Z (about 1 year ago)
- Language: Fennel
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⛵️ canvas.nvim
Bring your own [fennel][1] to [conjure][2].
This plugin provides a custom conjure client that can be configured to use a
specific version of fennel for compilation and evaluation. It defaults to
the top level "fennel" module (i.e., `(require :fennel)`).
# Usage
## Installation
With `lazy.nvim` just add the plugin to your configuration:
```lua
-- $XDG_CONFIG_HOME/nvim/lua/plugins/canvas.nvim.lua
return {
"codebeige/canvas.nvim",
-- the following entries are only required when deviating from the defaults:
dependencies = { "codebeige/rig.nvim" },
opts = { fennel = "fennel" },
}
```
## Commands
The `Fnl` command evaluates the a string of fennel code as a chunk and prints
the result:
```vim
:Fnl (+ 3 4 5)
" -> 12
```
---
Copyright ©2024 Tibor Claassen under the [MIT License](LICENSE)
[1]: https://fennel-lang.org
[2]: https://github.com/Olical/conjure