From: Yegappan Lakshmanan Date: Sat, 1 Oct 2022 14:44:20 +0000 (-0700) Subject: Don't load the plugin in older vim versions X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a53978a37752d91945044e548828d0b05125a3bc;p=vim-lsp.git Don't load the plugin in older vim versions --- 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'