diff options
author | David Briscoe <idbrii@gmail.com> | 2020-01-09 14:58:15 -0800 |
---|---|---|
committer | David Briscoe <idbrii@gmail.com> | 2020-01-09 15:13:37 -0800 |
commit | 7fa065ff068644b482e18a5c8be1711aaf16d6f0 (patch) | |
tree | 650f94f9f66afc87761aa5f35055d2d373389726 /plugin/lsp_settings.vim | |
parent | de68f3a138d460f84dc80b92a331e88f94d12e7c (diff) | |
download | vim-lsp-settings-7fa065ff068644b482e18a5c8be1711aaf16d6f0.tar.gz vim-lsp-settings-7fa065ff068644b482e18a5c8be1711aaf16d6f0.tar.bz2 vim-lsp-settings-7fa065ff068644b482e18a5c8be1711aaf16d6f0.zip |
Don't load on older vim
Fix errors when first opening old versions of vim.
vim-lsp requires json_encode and lambda and so do we. Skip loading if
they're not available.
Diffstat (limited to 'plugin/lsp_settings.vim')
-rw-r--r-- | plugin/lsp_settings.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 350c9ce..c90b039 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -1,4 +1,4 @@ -if exists('g:loaded_lsp_settings') +if exists('g:loaded_lsp_settings') || !exists('*json_encode') || !has('lambda') finish endif let g:loaded_lsp_settings= 1 |