Skip to content

Remove support for Neovim#829

Open
jalvesaq wants to merge 6 commits intomasterfrom
no_nvim
Open

Remove support for Neovim#829
jalvesaq wants to merge 6 commits intomasterfrom
no_nvim

Conversation

@jalvesaq
Copy link
Owner

@jalvesaq jalvesaq commented Feb 9, 2026

No description provided.

@jalvesaq
Copy link
Owner Author

jalvesaq commented Feb 9, 2026

This pull request removes Neovim-specific code and completely disables the plugin if the editor is Neovim. This makes the remaining code easier to maintain.

Neovim users have two options:

  • Use version 0.9.21 of Vim-R.
  • Migrate to R.nvim.

R.nvim has more features, but Vim-R (version 0.9.21) might still be a valid option for those who are not ready to migrate the Neovim configuration from init.vim to init.lua.

@jalvesaq jalvesaq requested a review from Copilot February 9, 2026 15:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes Neovim support paths from Vim-R by short-circuiting runtime in Neovim and simplifying job/terminal/float handling to Vim-only APIs.

Changes:

  • Add early has("nvim") guards to stop loading filetype plugins/syntax/ftdetect under Neovim.
  • Remove Neovim-specific job/terminal/buffer/float implementations and keep Vim’s job_start(), popup_*, and :terminal code paths.
  • Update documentation and Windows integration code to remove Neovim-specific notes/branches.

Reviewed changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
syntax/rout.vim Skip loading Rout syntax under Neovim.
syntax/rdoc.vim Skip loading R doc syntax under Neovim.
syntax/rbrowser.vim Skip loading object browser syntax under Neovim.
ftplugin/rrst_vimr.vim Skip rrst ftplugin under Neovim; remove g:has_Rnvim gate.
ftplugin/rnoweb_vimr.vim Skip rnoweb ftplugin under Neovim; remove g:has_Rnvim gate.
ftplugin/rmd_vimr.vim Skip rmd ftplugin under Neovim; remove g:has_Rnvim gate.
ftplugin/rhelp_vimr.vim Skip rhelp ftplugin under Neovim; remove g:has_Rnvim gate.
ftplugin/rdoc.vim Skip rdoc ftplugin under Neovim; remove g:has_Rnvim gate.
ftplugin/rbrowser.vim Skip rbrowser ftplugin under Neovim; remove Neovim buffer-update branch.
ftplugin/r_vimr.vim Skip r ftplugin under Neovim; remove Neovim jobstart branch.
ftplugin/quarto_vimr.vim Skip quarto ftplugin under Neovim; remove g:has_Rnvim gate.
ftdetect/r.vim Skip filetype detection under Neovim.
doc/Vim-R.txt Remove Neovim-specific documentation and update notes accordingly.
README.md Remove Neovim-related “See also” references.
R/windows.vim Remove Neovim-specific Windows start branch; use Vim shell invocation.
R/vimcom/src/apps/vimrserver.c Remove Neovim window-title handling; update messaging to Vim.
R/start_server.vim Remove Neovim job callback shapes; keep Vim job callbacks only.
R/start_r.vim Remove Neovim buffer/term/job branches; keep Vim-only code paths.
R/rstudio.vim Remove Neovim jobstart branch; keep Vim job callbacks.
R/rnw_fun.vim Remove Neovim-specific commented attempt in SyncTeX backward.
R/pdf_zathura.vim Remove Neovim Zathura launching; keep Vim job implementation.
R/pdf_okular.vim Remove Neovim Okular launching; keep Vim job implementation.
R/pdf_evince.vim Update Evince comment wording from Neovim to Vim.
R/nvimrcom.vim Remove Neovim-only job/channel glue (file deleted).
R/nvimbuffer.vim Remove Neovim-buffer R console implementation (file deleted).
R/functions.vim Skip functions file under Neovim; remove Neovim buffer syntax refresh.
R/extern_term.vim Remove Neovim env var and jobstart branches; keep Vim StartJob usage.
R/complete.vim Remove Neovim floating window implementation; use Vim popups only.
R/common_global.vim Make plugin immediately finish on Neovim; remove Neovim notify/float code and Neovim version checks.
R/common_buffer.vim Remove g:has_Rnvim early return after sourcing common_global.vim.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jalvesaq and others added 3 commits February 9, 2026 12:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jalvesaq
Copy link
Owner Author

Do you still use Vim and Vim-R? Please try the branch "no_nvim" and comment below if I unduly deleted code required by Vim.

@jranke
Copy link

jranke commented Feb 13, 2026

Do you still use Vim and Vim-R? Please try the branch "no_nvim" and comment below if I unduly deleted code required by Vim.

Hi, I support this move for the sake of maintainability of Vim-R (which only receives bugfixes anyways as I understand). I do still use Vim-R, because highlighting of Roxygen comments does not work in R.nvim [1].

[1] r-lib/tree-sitter-r#68

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