{"id":20516268,"url":"https://github.com/grierson/formedit","last_synced_at":"2026-04-17T08:03:49.567Z","repository":{"id":187651105,"uuid":"677288107","full_name":"grierson/formedit","owner":"grierson","description":"Paredit in Fennel for Clojure using Treesitter","archived":false,"fork":false,"pushed_at":"2023-09-19T15:33:54.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T10:04:28.012Z","etag":null,"topics":["clojure","fennel","nvim","paredit","treesitter"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grierson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Olical","ko_fi":"olical"}},"created_at":"2023-08-11T07:38:49.000Z","updated_at":"2023-10-08T10:34:40.000Z","dependencies_parsed_at":"2024-11-15T21:27:52.124Z","dependency_job_id":"b8fa280f-378a-4941-a743-9970ea8a5aa2","html_url":"https://github.com/grierson/formedit","commit_stats":null,"previous_names":["grierson/formedit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grierson%2Fformedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grierson%2Fformedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grierson%2Fformedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grierson%2Fformedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grierson","download_url":"https://codeload.github.com/grierson/formedit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242119491,"owners_count":20074750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","fennel","nvim","paredit","treesitter"],"created_at":"2024-11-15T21:27:45.705Z","updated_at":"2026-04-17T08:03:49.518Z","avatar_url":"https://github.com/grierson.png","language":"Lua","funding_links":["https://github.com/sponsors/Olical","https://ko-fi.com/olical"],"categories":[],"sub_categories":[],"readme":"# Form edit\n\nParedit in Fennel for Clojure using Treesitter\n\n## Features\n\n- Form text objects\n  - Lists (s-exp, quoted list), vector, set are all under one text object\n    so instead of `di(` `di[` `di{` just `dif` (or any other text object command)\n    `f` for current form. `F` for root form\n- Slurp (Forward + Backwards)\n  - Bring in element/form into your form\n- Barf (Forward + Backwards)\n  - Remove an element/form from your form\n- Raise\n  - Remove parent form and replace with current form\n- Wrap\n  - Add form around current form\n- Insertion\n  - Move cursor to begining/end of form in insert mode\n\n## Install\n\nFor lazy package manager\n\n```lua\n\"grierson/formedit\"\n```\n\n## Example keymap\n\nBased of `tpope/vim-sexp-mappings-for-regular-people`\n\n```lua\nlocal formedit = require(\"formedit\")\nvim.keymap.set('o', 'af', formedit.select.form, { desc = \"Outer form\" })\nvim.keymap.set('o', 'aF', formedit.select.root, { desc = \"Outer root form\" })\nvim.keymap.set('o', 'if', formedit.select.inner, { desc = \"Inner form\" })\nvim.keymap.set('o', 'iF', formedit.select[\"inner-root\"], { desc = \"Inner root form\" })\nvim.keymap.set('n', '\u003clocalleader\u003eh', formedit.insertion.head, { desc = \"Head insert\" })\nvim.keymap.set('n', '\u003clocalleader\u003eH', formedit.insertion.tail, { desc = \"Tail insert\" })\nvim.keymap.set('n', '\u003clocalleader\u003ei', formedit.wrap.head, { desc = \"Wrap form \" })\nvim.keymap.set('n', '\u003clocalleader\u003eo', formedit.raise.form, { desc = \"Raise form\" })\nvim.keymap.set('n', '\u003clocalleader\u003eO', formedit.raise.element, { desc = \"Raise element\" })\nvim.keymap.set('n', '\u003e)', formedit.slurp.forward, { desc = \"Slurp forward\" })\nvim.keymap.set('n', '\u003c(', formedit.slurp.backward, { desc = \"Slurp backward\" })\nvim.keymap.set('n', '\u003e(', formedit.barf.backward, { desc = \"Barf backward\" })\nvim.keymap.set('n', '\u003c)', formedit.barf.forward, { desc = \"Barf forward\" })\n```\n\n## Developer Getting started\n\n```bash\n./scripts/nfnl          # Download nfnl\njust test               # Run tests\njust watch {featuer}    # Run test in watch mode for feature\n```\n\n## Unlicensed\n\nFind the full [Unlicense][unlicense] in the `UNLICENSE` file, but here's a\nsnippet.\n\n\u003e This is free and unencumbered software released into the public domain.\n\u003e\n\u003e Anyone is free to copy, modify, publish, use, compile, sell, or distribute\n\u003e this software, either in source code form or as a compiled binary, for any\n\u003e purpose, commercial or non-commercial, and by any means.\n\n[neovim]: https://neovim.io/\n[fennel]: https://fennel-lang.org/\n[nfnl]: https://github.com/Olical/nfnl\n[unlicense]: http://unlicense.org/\n[plenary]: https://github.com/nvim-lua/plenary.nvim\n[guns/vim-sexp]: https://github.com/guns/vim-sexp\n[tpope/vim-sexp-mappings-for-regular-people]: https://github.com/tpope/vim-sexp-mappings-for-regular-people\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrierson%2Fformedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrierson%2Fformedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrierson%2Fformedit/lists"}