jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
966 stars 125 forks source link

Unknown function: nvim_set_option_value #801

Closed ensorpalacios closed 9 months ago

ensorpalacios commented 9 months ago

Hello, I'm seeing this error when opening an .R file with neovim:

Error detected while processing function ROnJobStdout[40]..UpdateSynRhlist[11]..FunHiOtherBf:
E117: Unknown function: nvim_set_option_value

It doesn't seem to prevent me to do anything, but I don't understand from where it comes.

I'm using R version 4.2.0 (2022-04-22), nvim 0.6.1, ubuntu 22.04.

My init.vim file has

" --- General (from
"  https://github.com/jakewies/.dotfiles/blob/main/nvim/.config/nvim/init.vim) 

" Better colors
set termguicolors
" number of spaces in a <Tab>
set tabstop=4 
set softtabstop=4
set expandtab
" number of spaces used for autoindents
set shiftwidth=4
" enable autoindents
set smartindent
" adds line numbers
set number

set numberwidth=1

set relativenumber
set signcolumn=yes
set noswapfile
set nobackup
set undodir=~/.config/nvim/undodir
" Save undo history
set undofile
" highlights the matched text pattern when searching
set incsearch
set nohlsearch
" case insensitive search unless capital letters are used
set ignorecase
set smartcase

set nowrap
" open splits intuitively
set splitbelow
set splitright
" navigate buffers without losing unsaved work
set hidden

set scrolloff=999
set noshowmode
set updatetime=250 
set encoding=UTF-8
" Enable mouse support
set mouse=a

" --- Plugins

call plug#begin('~/.config/nvim/plugged')
"call plug#begin('/home/yq18021/.local/share/nvim/site/autoload')

" General
Plug 'sainnhe/gruvbox-material'  
"Plug 'kyazdani42/nvim-web-devicons'                " Devicons
"Plug 'nvim-lualine/lualine.nvim'                   " Status line
"Plug 'akinsho/bufferline.nvim'                     " Buffers
"Plug 'machakann/vim-highlightedyank'               " Highlight yanked text
"Plug 'kyazdani42/nvim-tree.lua'                    " File explorer
"Plug 'folke/tokyonight.nvim', { 'branch': 'main' } " Color scheme
"" Lsp
"Plug 'neovim/nvim-lspconfig'     
"Plug 'jose-elias-alvarez/null-ls.nvim'
"Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
"" Autocompletion
"Plug 'hrsh7th/nvim-cmp'
"Plug 'hrsh7th/cmp-nvim-lsp'
"Plug 'L3MON4D3/LuaSnip'
"Plug 'saadparwaiz1/cmp_luasnip'
"Plug 'onsails/lspkind-nvim'
"" Git
"Plug 'tpope/vim-fugitive'
"Plug 'lewis6991/gitsigns.nvim'
"" Telescope
"Plug 'nvim-lua/plenary.nvim'
"Plug 'nvim-telescope/telescope.nvim'
"Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' }

" R plugin
Plug 'jalvesaq/Nvim-R'

" Latex plugin (https://github.com/lervag/vimtex)
Plug 'lervag/vimtex'

call plug#end()

" Enable file-type specific plugins (e.g. necessary for vimtex)
"filetype-plugin-on

"--- Colors (see :help gruvbox-material.txt for all options)
set background=dark
set termguicolors
let g:gruvbox_material_background = 'low'
let g:gruvbox_material_foreground = 'material'
let g:gruvbox_material_better_performance = 1
let g:gruvbox_material_transparent_background = 0
let g:gruvbox_contrast = 'hard'
colorscheme gruvbox-material

"--- Allow useing system clipboard from vim (copy/past from/to vim)
set clipboard+=unnamedplus

Probably something stupid going on here. Could anyone give me any help?
Many thanks
jalvesaq commented 9 months ago

nvim_buf_set_option is deprecated and replaced with nvim_set_option_value. I don't know when nvim_set_option_value was introduced, but I will check for "nvim-0.7.0". Please, reopen the issue if not fixed.

ensorpalacios commented 9 months ago

Thank you for the help. Updating neovim from the default system version got rid of the problem indeed.