New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would this be a possible alternative to lua for configuration? #442
Comments
Looks interesting. Let's look into how we can leverage this without directly embedding into xplr. (E.g. browser knows only css). There's also fennel-nvim/aniseed as an inspiration. |
Found a good introduction video: https://youtu.be/VC1DhAoRSpg |
As per the video, it should be pretty easy to write xplr config in fennel, without built-in support. All it takes is the fennel compiler and a Makefile in the config/plugin directory. |
Staying in the sass<->css example, sass has some advantages over css. What kind of advantage do you get out of using fennel over lua? Or is it just that people like writing lispy code? |
I think it has been sorted. To add fennel support, use the following steps:
local home = os.getenv("HOME")
-- Lua search path
package.path = home
.. "/.config/xplr/plugins/?/init.lua;"
.. home
.. "/.config/xplr/plugins/?.lua;"
.. package.path
local fennel = require("fennel")
-- Fennel search path
fennel.path = fennel.path
.. ";"
.. home
.. "/.config/xplr/plugins/?/init.fnl;"
.. home
.. "/.config/xplr/plugins/?.fnl;"
table.insert(package.loaders or package.searchers, fennel.searcher) |
https://git.sr.ht/~ioiojo/include-fnl
fennel is a lisp dialect that "compiles*" to lua
The text was updated successfully, but these errors were encountered: