projects
/
vim-lsp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67bd20b
)
Don't load the plugin in older vim versions
author
Yegappan Lakshmanan <yegappan@yahoo.com>
Sat, 1 Oct 2022 14:44:20 +0000 (07:44 -0700)
committer
Yegappan Lakshmanan <yegappan@yahoo.com>
Sat, 1 Oct 2022 14:44:20 +0000 (07:44 -0700)
plugin/lsp.vim
patch
|
blob
|
history
diff --git
a/plugin/lsp.vim
b/plugin/lsp.vim
index 5b54be1a8333355576f0cb25f209afad95b1312e..3aef1c4d29524ac764438a54bfba6b5eed792ebd 100644
(file)
--- 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'