Skip to content

Commit

Permalink
Mostly disables itself if R.nvim is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jalvesaq committed Feb 18, 2024
1 parent 6cd4e1e commit 294e296
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions R/common_global.vim
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ function RWarningMsg(wmsg)
echohl None
endfunction

" Mostly disables itself if R.nvim is installed
if has('nvim')
if exists("g:R_Nvim_status")
" R.nvim was loaded first
finish
endif
" R.nvim might be installed, but wasn't loaded yet
lua if pcall(require, 'r') then vim.g.has_Rnvim = 1 end
if exists("g:has_Rnvim")
finish
endif
endif

"==============================================================================
" Check Vim/Neovim version
Expand Down

0 comments on commit 294e296

Please sign in to comment.