update
This commit is contained in:
@@ -26,11 +26,26 @@ fnl/plugins/ - Plugin specs in Fennel
|
||||
2. **Edit Fennel files in `fnl/`** - they compile to `lua/` on save
|
||||
3. **`init.lua` and `lua/bootstrap.lua` stay as Lua** - they bootstrap nfnl
|
||||
|
||||
**IMPORTANT FOR CLAUDE:** After editing any `.fnl` file, compile all Fennel files to Lua:
|
||||
## Compiling Fennel (MANDATORY)
|
||||
|
||||
**After editing ANY `.fnl` file, you MUST compile it to Lua:**
|
||||
|
||||
```bash
|
||||
cd ~/.config/nvim && nvim --headless -c "NfnlCompileAllFiles" -c "qa"
|
||||
```
|
||||
|
||||
If compilation says "destination-exists", delete the lua file first to force recompile:
|
||||
```bash
|
||||
cd ~/.config/nvim && rm lua/plugins/init.lua && nvim --headless -c "NfnlCompileAllFiles" -c "qa"
|
||||
```
|
||||
|
||||
### Trust Issue Fix
|
||||
|
||||
If you see ".nfnl.fnl is not trusted", add it to nvim's trust database:
|
||||
```bash
|
||||
sha256sum ~/.config/nvim/.nfnl.fnl | awk '{print $1 " /home/ajet/.config/nvim/.nfnl.fnl"}' >> ~/.local/state/nvim/trust
|
||||
```
|
||||
|
||||
## Fennel Syntax Quick Reference
|
||||
|
||||
```fennel
|
||||
|
||||
Reference in New Issue
Block a user