{"id":40854298,"url":"https://github.com/aca/wezterm.nvim","last_synced_at":"2026-01-21T23:44:04.739Z","repository":{"id":51742343,"uuid":"442782535","full_name":"aca/wezterm.nvim","owner":"aca","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-28T16:39:17.000Z","size":3,"stargazers_count":40,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T02:06:59.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-29T13:32:55.000Z","updated_at":"2024-06-04T16:09:13.000Z","dependencies_parsed_at":"2022-08-22T12:30:56.181Z","dependency_job_id":null,"html_url":"https://github.com/aca/wezterm.nvim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aca/wezterm.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fwezterm.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fwezterm.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fwezterm.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fwezterm.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aca","download_url":"https://codeload.github.com/aca/wezterm.nvim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Fwezterm.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28646961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-21T23:44:04.677Z","updated_at":"2026-01-21T23:44:04.730Z","avatar_url":"https://github.com/aca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wezterm.nvim\n\nReplacement of\n- [vim-tmux-navigator](https://github.com/christoomey/vim-tmux-navigator) \n- [better-vim-tmux-resizer](https://github.com/RyanMillerC/better-vim-tmux-resizer)\n\nfor [wezterm](https://github.com/wez/wezterm).\n\n## prerequisite\n\n.bashrc / .zshrc\n```\n[ -n \"$WEZTERM_PANE\" ] \u0026\u0026 export NVIM_LISTEN_ADDRESS=\"/tmp/nvim$WEZTERM_PANE\"\n```\n\n.config/fish/config.fish\n```\nif not set -q $WEZTERM_PANE\n  set -x NVIM_LISTEN_ADDRESS \"/tmp/nvim$WEZTERM_PANE\"\nend\n```\n\nI just use the original tmux plugins for vim configs.\n\n- [vim-tmux-navigator](https://github.com/christoomey/vim-tmux-navigator) \n- [better-vim-tmux-resizer](https://github.com/RyanMillerC/better-vim-tmux-resizer)\n\n```\nvim.cmd([[\n  packadd vim-tmux-navigator\n  nnoremap \u003csilent\u003e\u003cc-h\u003e \u003ccmd\u003eTmuxNavigateLeft\u003ccr\u003e\n  nnoremap \u003csilent\u003e\u003cc-j\u003e \u003ccmd\u003eTmuxNavigateDown\u003ccr\u003e\n  nnoremap \u003csilent\u003e\u003cc-k\u003e \u003ccmd\u003eTmuxNavigateUp\u003ccr\u003e\n  nnoremap \u003csilent\u003e\u003cc-l\u003e \u003ccmd\u003eTmuxNavigateRight\u003ccr\u003e\n\n  tnoremap \u003cc-h\u003e \u003cC-\\\u003e\u003cC-N\u003e\u003ccmd\u003eTmuxNavigateLeft\u003ccr\u003e\n  tnoremap \u003cc-j\u003e \u003cC-\\\u003e\u003cC-N\u003e\u003ccmd\u003eTmuxNavigateDown\u003ccr\u003e\n  tnoremap \u003cc-k\u003e \u003cC-\\\u003e\u003cC-N\u003e\u003ccmd\u003eTmuxNavigateUp\u003ccr\u003e\n  tnoremap \u003cc-l\u003e \u003cC-\\\u003e\u003cC-N\u003e\u003ccmd\u003eTmuxNavigateRight\u003ccr\u003e\n]])\n\nvim.cmd([[\n  packadd better-vim-tmux-resizer\n  let g:tmux_resizer_no_mappings = 1\n  nnoremap \u003csilent\u003e \u003cm-h\u003e \u003ccmd\u003eTmuxResizeLeft\u003ccr\u003e\n  nnoremap \u003csilent\u003e \u003cm-j\u003e \u003ccmd\u003eTmuxResizeDown\u003ccr\u003e\n  nnoremap \u003csilent\u003e \u003cm-k\u003e \u003ccmd\u003eTmuxResizeUp\u003ccr\u003e\n  nnoremap \u003csilent\u003e \u003cm-l\u003e \u003ccmd\u003eTmuxResizeRight\u003ccr\u003e\n]])\n```\n\n\n## navigator\n\nCurrently wezterm doesn't provide api to execute wezterm action inside neovim. So we execute commandline program in wezterm which \nuses neovim remote msgpack api. \n\nCheckout https://github.com/wez/wezterm/discussions/995 for details/updates.\n\n---\n\ninstall\n```\ncd wezterm.nvim.navigator \u0026\u0026 go install\n```\n\n\nwezterm config\n```\nlocal wezterm = require(\"wezterm\")\nlocal os = require(\"os\")\n\nlocal move_around = function(window, pane, direction_wez, direction_nvim)\n  local result = os.execute(\"env NVIM_LISTEN_ADDRESS=/tmp/nvim\" .. pane:pane_id() ..  \" wezterm.nvim.navigator \" .. direction_nvim)\n  if result then\n\t\twindow:perform_action(wezterm.action({ SendString = \"\\x17\" .. direction_nvim }), pane)\n  else\n\t\twindow:perform_action(wezterm.action({ ActivatePaneDirection = direction_wez }), pane)\n  end\nend\n\nwezterm.on(\"move-left\", function(window, pane)\n\tmove_around(window, pane, \"Left\", \"h\")\nend)\n\nwezterm.on(\"move-right\", function(window, pane)\n\tmove_around(window, pane, \"Right\", \"l\")\nend)\n\nwezterm.on(\"move-up\", function(window, pane)\n\tmove_around(window, pane, \"Up\", \"k\")\nend)\n\nwezterm.on(\"move-down\", function(window, pane)\n\tmove_around(window, pane, \"Down\", \"j\")\nend)\n```\n\n\nwezterm mapping\n```\n-- pane move(vim aware)\n{ key = \"h\", mods = \"CTRL\", action = wezterm.action({ EmitEvent = \"move-left\" }) },\n{ key = \"l\", mods = \"CTRL\", action = wezterm.action({ EmitEvent = \"move-right\" }) },\n{ key = \"k\", mods = \"CTRL\", action = wezterm.action({ EmitEvent = \"move-up\" }) },\n{ key = \"j\", mods = \"CTRL\", action = wezterm.action({ EmitEvent = \"move-down\" }) },\n```\n\n## resizer\n\n```\nlocal vim_resize = function(window, pane, direction_wez, direction_nvim)\n\tlocal result = os.execute(\n\t\t\"env NVIM_LISTEN_ADDRESS=/tmp/nvim\"\n\t\t\t.. pane:pane_id()\n\t\t\t.. \" \"\n\t\t\t.. homedir\n\t\t\t.. \"/bin/\"\n\t\t\t.. \"wezterm.nvim.navigator \"\n\t\t\t.. direction_nvim\n\t)\n\tif result then\n\t\twindow:perform_action(wezterm.action({ SendString = \"\\x1b\" .. direction_nvim }), pane)\n\telse\n\t\twindow:perform_action(wezterm.action({ ActivatePaneDirection = direction_wez }), pane)\n\tend\nend\n\nwezterm.on(\"resize-left\", function(window, pane)\n\tvim_resize(window, pane, \"Left\", \"h\")\nend)\n\nwezterm.on(\"resize-right\", function(window, pane)\n\tvim_resize(window, pane, \"Right\", \"l\")\nend)\n\nwezterm.on(\"resize-up\", function(window, pane)\n\tvim_resize(window, pane, \"Up\", \"k\")\nend)\n\nwezterm.on(\"resize-down\", function(window, pane)\n\tvim_resize(window, pane, \"Down\", \"j\")\nend)\n```\n\n```\n{ key = \"h\", mods = \"ALT\", action = wezterm.action({ EmitEvent = \"resize-left\" }) },\n{ key = \"l\", mods = \"ALT\", action = wezterm.action({ EmitEvent = \"resize-right\" }) },\n{ key = \"k\", mods = \"ALT\", action = wezterm.action({ EmitEvent = \"resize-up\" }) },\n{ key = \"j\", mods = \"ALT\", action = wezterm.action({ EmitEvent = \"resize-down\" }) },\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faca%2Fwezterm.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faca%2Fwezterm.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faca%2Fwezterm.nvim/lists"}