Skip to content

feat: add nvim (Neovim) as supported editor#28

Draft
RickyMarou wants to merge 1 commit into
zh-lx:mainfrom
RickyMarou:feat/add-nvim-support
Draft

feat: add nvim (Neovim) as supported editor#28
RickyMarou wants to merge 1 commit into
zh-lx:mainfrom
RickyMarou:feat/add-nvim-support

Conversation

@RickyMarou
Copy link
Copy Markdown

Summary

  • Add Neovim (nvim) as a supported editor, following the existing vim implementation pattern
  • Uses the same cursor positioning format as vim: +call cursor(line, column)
  • Registers nvim as a terminal editor for proper process handling

Changes

  • lib/type.ts: Added 'nvim' to the Editor type union
  • lib/editor-info/linux.ts: Added nvim to COMMON_EDITORS_LINUX and EDITOR_PROCESS_MAP_LINUX
  • lib/editor-info/mac.ts: Added nvim to COMMON_EDITORS_OSX and EDITOR_PROCESS_MAP_OSX
  • lib/get-args.ts: Added 'nvim' case to share vim's cursor positioning format
  • lib/index.ts: Added 'nvim' to isTerminalEditor function

Test plan

  • Build passes (pnpm run build)
  • Manual test: Run neovim, then use the library to open a file with line/column positioning

🤖 Generated with Claude Code

Add Neovim support following the existing vim implementation pattern:
- Add 'nvim' to Editor type union
- Add nvim to COMMON_EDITORS and EDITOR_PROCESS_MAP for Linux and macOS
- Add nvim case to getFormatByEditor with same cursor positioning as vim
- Add nvim to isTerminalEditor function

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zh-lx
Copy link
Copy Markdown
Owner

zh-lx commented Jan 25, 2026

@CodiumAI-Agent /improve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants