From a53978a37752d91945044e548828d0b05125a3bc Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Sat, 1 Oct 2022 07:44:20 -0700 Subject: [PATCH] Don't load the plugin in older vim versions --- plugin/lsp.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/lsp.vim b/plugin/lsp.vim index 5b54be1..3aef1c4 100644 --- a/plugin/lsp.vim +++ b/plugin/lsp.vim @@ -1,12 +1,12 @@ +if !has('vim9script') || v:version < 900 + " Needs Vim version 9.0 and above + finish +endif + vim9script # Language Server Protocol (LSP) plugin for vim -# Needs Vim version 9.0 and above -if v:version < 900 - finish -endif - import autoload '../autoload/lsp/lspoptions.vim' import autoload '../autoload/lsp/lsp.vim' -- 2.48.1