{"id":33336274,"url":"https://github.com/lfrati/szent.nvim","last_synced_at":"2026-05-12T21:02:20.336Z","repository":{"id":318950975,"uuid":"1076430021","full_name":"lfrati/szent.nvim","owner":"lfrati","description":"A small plugin to send code from neovim to tmux using visual, paragraphs or cells.","archived":false,"fork":false,"pushed_at":"2025-11-20T11:04:40.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-20T13:06:44.196Z","etag":null,"topics":["ipython","lua","neovim-plugin","slime"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lfrati.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-14T21:08:53.000Z","updated_at":"2025-11-20T11:04:44.000Z","dependencies_parsed_at":"2025-10-17T11:17:40.566Z","dependency_job_id":"b23a2b0c-77c7-4323-bfaf-7ae50100e56d","html_url":"https://github.com/lfrati/szent.nvim","commit_stats":null,"previous_names":["lfrati/szent.nvim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lfrati/szent.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfrati%2Fszent.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfrati%2Fszent.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfrati%2Fszent.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfrati%2Fszent.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfrati","download_url":"https://codeload.github.com/lfrati/szent.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfrati%2Fszent.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ipython","lua","neovim-plugin","slime"],"created_at":"2025-11-21T05:00:14.986Z","updated_at":"2026-05-12T21:02:20.328Z","avatar_url":"https://github.com/lfrati.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg width=\"300\" height=\"300\" alt=\"szent_round_400\" src=\"https://github.com/user-attachments/assets/389f58cb-4c23-4ebc-86d0-295c22875252\" /\u003e\n  \u003cp align=\"center\"\u003e/sɛnt/ : holy [hu], past of send [en]\u003c/p\u003e\n\u003cp\u003e\n\n# szent.nvim \n\u003ccode style=\"color:red\"\u003etext\u003c/code\u003e\nA tiny Neovim bridge that sends code from your current buffer to a tmux REPL using safe bracketed paste.\n\n\u003cimg width=\"920\" height=\"305\" alt=\"szent_example\" src=\"https://github.com/user-attachments/assets/6606f689-1663-4d85-8e3b-88caf2930f32\" /\u003e\n\n## Features\n- Target any tmux pane and paste via `load-buffer`/`paste-buffer -p`.\n- Send from visual selection, paragraph or cell.\n- Highlights the szent code (shoutout `vim.hl.range` for including a timeout)\n- Checks that the target pane runs a known REPL command before sending.\n\n## Requirements\n- Neovim 0.10 or newer.\n- A running tmux session with bracketed paste enabled.\n\n## Installation\nUsing [lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\n{\n  \"lfrati/szent.nvim\",\n  config = function()\n      local szent = require(\"szent\")\n      \n      szent.setup {\n        repl_commands = { \"python\", \"ipython\", \"uv\" },\n      }\n      -- keybindings are not set by default ♻️\n      vim.keymap.set(\"x\", \"\u003cleader\u003e\u003cleader\u003ep\", \"\u003cPlug\u003e(SzentVisual)\")\n      vim.keymap.set(\"n\", \"\u003cleader\u003e\u003cleader\u003ep\", \"\u003cPlug\u003e(SzentParagraph)\")\n      vim.keymap.set(\"n\", \"\u003cleader\u003e\u003cleader\u003er\", \"\u003cPlug\u003e(SzentCellAndMove)\")\n\n  end\n}\n```\n\n## Usage\n- `:SzentConfig` prompts for a tmux pane to send text to (in case you changed your mind about `:.2`).\n\u003cimg width=\"450\" height=\"103\" alt=\"image\" src=\"https://github.com/user-attachments/assets/72ba1f6d-e291-4e05-bfe5-651608e4e2ea\" /\u003e\n\n\n- `send_visual()`, try to guess.\n- `send_paragraph()`, another cryptic one.\n- `send_cell({move = true})` sends the current delimited cell (defaults to `# %%`), and then moves the cursor to the next cell.\n- `send_cell({move = false})` sends the current delimited cell (defaults to `# %%`), and then... nothing.\n\n| Szent succesfully  | Error while szending |\n| ------------- | ------------- |\n| \u003cimg width=\"320\" height=\"167\" alt=\"success\" src=\"https://github.com/user-attachments/assets/1817968e-5ce2-4c4a-85cf-fd9e9fa87a40\" /\u003e  | \u003cimg width=\"319\" height=\"171\" alt=\"error\" src=\"https://github.com/user-attachments/assets/e2dbf5d1-d497-4f83-99d7-512cfa7cda6e\" /\u003e  |\n| Code sent succesfully is highlighted with `Visual` | \u003cpre\u003e `Target tmux pane :.2 is running 'zsh'.` \u003cbr\u003e \u0026emsp; `Expected one of: python, ipython` \u003c/pre\u003e|\n\n\nTip: use text objects for the cell content:\n```lua\nvim.keymap.set({\"o\",\"x\"}, \"ic\", \":\u003cC-u\u003elua require('szent').select_cell_inner()\u003cCR\u003e\", { silent = true, desc = \"inside cell\" })\nvim.keymap.set({\"o\",\"x\"}, \"ac\", \":\u003cC-u\u003elua require('szent').select_cell_around()\u003cCR\u003e\", { silent = true, desc = \"around cell\" })\n```\n\n\n## Configuration\nAll options are optional (duh.) and are merged with the defaults below:\n\n```lua\nrequire(\"szent\").setup({\n  target_pane = \":.2\",                     -- tmux pane target default (session:window.pane)\n  cell_delimiter = [[^\\s*#\\s*%%]],         -- pattern that marks cell boundaries\n  repl_commands = {},                      -- optional commands to assert before sending\n  timeout = 200,                           -- highlight timeout in milliseconds\n})\n```\n\nCustomize the popup picker colors with the exposed namespace:\n```\n'SzentCmd'    : color pane command\n'SzentActive' : color for the * marking the active pane\n'FloatBorder' : color for the popup border\n'FloatTitle'  : color for the popup title\n'Normal'      : base text color in the popup\n```\ndefining your own colors as follows:\n```lua\nlocal ns = require(\"szent\").ui_namespace()\nvim.api.nvim_set_hl(ns.popup, \"FloatBorder\", { fg = \"#00ff00\" })\n```\n\n## Thanks\n- [slime](https://slime.common-lisp.dev/)\n- [vim-slime](https://github.com/jpalardy/vim-slime)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfrati%2Fszent.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfrati%2Fszent.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfrati%2Fszent.nvim/lists"}