Ccmmutty logo
Commutty IT
4 min read

NeovimをFennelで書くにあたっての基本情報 Basic information for using Fennel in Neovim

https://cdn.magicode.io/media/notebox/d1e8def5-744e-4443-a268-41e1482fb740.jpeg
初めてFennelで書く方にとって使えるかもしれない基礎情報を紹介します.

プラグインを書く How to write plugin.

1. プラグインファイルを置く How to place a plugin file.

@$HOME/.config/nvim/plugin/myplgin.vim
lua require('myplugin')

2. Makefile How to write a make file.

@$HOME/.config/nvim/Makefile
all: lua/myplugin.lua

lua/%.lua: fnl/%.fnl
	fennel --compile $< > $@

3. Make

@$HOME/.config/nvim
:make | luafile lua/myplugin.lua

Reference

Plugins

syntax

native fennel support

transpile and path setting

Macro Libraries

Dotfiles

using aniseed

using hotpot

Plugin for s-expressions

(a (b ...)) -> (a) (b ...)
(a) (b) -> (a b)
(a (b)) -> (b)

Discussion

コメントにはログインが必要です。