An open API service indexing awesome lists of open source software.

https://github.com/codebeige/canvas.nvim


https://github.com/codebeige/canvas.nvim

Last synced: 26 days ago
JSON representation

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