Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chiroptical/fennel-neovim-todo-plugin
https://github.com/chiroptical/fennel-neovim-todo-plugin
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chiroptical/fennel-neovim-todo-plugin
- Owner: chiroptical
- Created: 2022-07-31T19:11:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T15:22:48.000Z (over 2 years ago)
- Last Synced: 2023-07-17T05:52:42.555Z (over 1 year ago)
- Language: Nix
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fennel Neovim Plugin Example
---Followed [Writing a neovim plugin in Lua][writing-a-neovim-plugin-with-lua] but
instead of using Lua, I used Fennel. [Fennel][fennel] is a language that
transpiles to Lua.As far as I can tell, there isn't really a convenient way to include this in
[vim-plug][vim-plug]. There doesn't appear to be a great way to manage Lua
dependencies in general (so I am using nix). Additionally, you need to compile
the Fennel files to Lua.How to use this?
---You'll need to clone it, build the dependencies, and include it in your configuration.
Currently, this requires nix.```shell
nix-build # fetches the lua dependencies
nix-shell # enters a shell with the dev dependencies
make # generates the lua
pwd # you'll need this for the next step
exit # leave the nix shell
```In your neovim config, replacing the path with the one from `pwd`,
```vimscript
Plug '{path_from_pwd_above}'
```TODO
---- [ ] `nix-build` should probably create the entire plugin
[writing-a-neovim-plugin-with-lua]: https://www.linode.com/docs/guides/writing-a-neovim-plugin-with-lua
[fennel]: https://fennel-lang.org
[vim-plug]: https://github.com/junegunn/vim-plug