From cbec765915a8a76e86ac79dde8eeae663b019882 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sat, 16 Oct 2021 18:40:57 +0200 Subject: vim-patch:8.2.3520: cannot define a function for thesaurus completion Problem: Cannot define a function for thesaurus completion. Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes vim/vim#8987, closes 8950) https://github.com/vim/vim/commit/160e994d768d03a3c826b58115cde94df8fce607 --- src/nvim/options.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/nvim/options.lua') diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 8b9cdefd57..a4a80a754c 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -2535,6 +2535,15 @@ return { varname='p_tsr', defaults={if_true=""} }, + { + full_name='thesaurusfunc', abbreviation='tsrfu', + short_desc=N_("function used for thesaurus completion"), + type='string', scope={'buffer'}, + secure=true, + alloced=true, + varname='p_thsfu', + defaults={if_true=""} + }, { full_name='tildeop', abbreviation='top', short_desc=N_("tilde command \"~\" behaves like an operator"), -- cgit From 2dc0af3a4ff16d311169ce2ecd120dd05778039c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 17 Oct 2021 16:37:29 +0200 Subject: vim-patch:8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scope Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope. Solution: Make 'thesaurusfunc' global-local. https://github.com/vim/vim/commit/f4d8b76d304dabc39c06d2344cd4c7b28484811b --- src/nvim/options.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/options.lua') diff --git a/src/nvim/options.lua b/src/nvim/options.lua index a4a80a754c..71208dfc68 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -2538,10 +2538,10 @@ return { { full_name='thesaurusfunc', abbreviation='tsrfu', short_desc=N_("function used for thesaurus completion"), - type='string', scope={'buffer'}, + type='string', scope={'global', 'buffer'}, secure=true, alloced=true, - varname='p_thsfu', + varname='p_tsrfu', defaults={if_true=""} }, { -- cgit