]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Don't load the plugin in older vim versions
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 1 Oct 2022 14:44:20 +0000 (07:44 -0700)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 1 Oct 2022 14:44:20 +0000 (07:44 -0700)
plugin/lsp.vim

index 5b54be1a8333355576f0cb25f209afad95b1312e..3aef1c4d29524ac764438a54bfba6b5eed792ebd 100644 (file)
@@ -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'