practicalli / neovim

Neovim, Conjure and LSP for Clojure development using Fennel configuration
https://practical.li/neovim/
Creative Commons Attribution Share Alike 4.0 International
21 stars 5 forks source link

Getting Started with Fennel #9

Closed practicalli-johnny closed 2 years ago

practicalli-johnny commented 2 years ago

Practicalli recommends Fennel as the programming language for configuring Neovim.

Important packages used in this guide are written in Fennel, especially the excellent Conjure package that provides the Clojure REPL (and support for several other language enviroments).

Fennel is a programming language that brings together the speed, simplicity, and reach of Lua with the flexibility of a lisp syntax and macro system.

Anywhere you can run Lua code, you can run Fennel code.

https://fennel-lang.org/

Fennel to Lua

Lua is the defacto language for writing Neovim packages, although there are more developers seeing Fennel as a viable alternative.

Fennel is converted to Lua using the aniseed package

Aniseed bridges the gap between Fennel (a Lisp that compiles to Lua) and Neovim. Allowing you to easily write plugins or configuration in a Clojure-like Lisp with great runtime performance.

Lua to Fennel

Package configuration is typically provided in Lua code, so requires translation into fennel. Anti-fennel (think antipasta) converts Lua code into Fennel code

There is an online conversion tool at See Fennel

Playing Games

Development tooling