From 06c7cc740a9f2bed938aed8ae8e69bfa758049f0 Mon Sep 17 00:00:00 2001 From: Shidong Wang Date: Sun, 7 Jun 2020 15:25:02 +0800 Subject: [PATCH] Avoid load script twice --- autoload/SpaceVim/layers/lang/kotlin.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/lang/kotlin.vim b/autoload/SpaceVim/layers/lang/kotlin.vim index ea02b1590..8a161bd5f 100644 --- a/autoload/SpaceVim/layers/lang/kotlin.vim +++ b/autoload/SpaceVim/layers/lang/kotlin.vim @@ -39,7 +39,11 @@ let s:SYS = SpaceVim#api#import('system') " Default Options: -let s:enable_native_support = 0 +if exists('s:enable_native_support') + finish +else + let s:enable_native_support = 0 +endif function! SpaceVim#layers#lang#kotlin#plugins() abort