From: Yegappan Lakshmanan Date: Sun, 27 Nov 2022 18:03:04 +0000 (-0800) Subject: Passing multiple text property types to prop_remove() is supported only starting... X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=87eef7ccb268fe5232c99c82bb3ea5e3df86ae92;p=vim-lsp.git Passing multiple text property types to prop_remove() is supported only starting with 9.0.0233 --- diff --git a/autoload/lsp/lsp.vim b/autoload/lsp/lsp.vim index dd3307a..c1cfce0 100644 --- a/autoload/lsp/lsp.vim +++ b/autoload/lsp/lsp.vim @@ -589,7 +589,13 @@ def g:LspDocHighlightClear() return endif - prop_remove({types: ['LspTextRef', 'LspReadRef', 'LspWriteRef'], all: true}) + if has('patch-9.0.0233') + prop_remove({types: ['LspTextRef', 'LspReadRef', 'LspWriteRef'], all: true}) + else + prop_remove({type: 'LspTextRef', all: true}) + prop_remove({type: 'LspReadRef', all: true}) + prop_remove({type: 'LspWriteRef', all: true}) + endif enddef def g:LspRequestDocSymbols()