From 650d5cabbbcbf9c5d2ea66f72ee239d11c01a37c Mon Sep 17 00:00:00 2001 From: IK <36619465+get-me-power@users.noreply.github.com> Date: Tue, 25 Oct 2022 04:07:52 +0900 Subject: [PATCH] add check Duplicate (#19) --- plugin/jsonnet.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugin/jsonnet.vim b/plugin/jsonnet.vim index 021c48b..79c0b40 100644 --- a/plugin/jsonnet.vim +++ b/plugin/jsonnet.vim @@ -3,11 +3,10 @@ " A plugin for jsonnet files. " Install useful tools for *.jsonnet and *.libsonnet files - - - - - +if exists('g:loaded_jsonnet') + finish +endif +let g:loaded_jsonnet = 1 function! s:fmtAutosave() " Jsonnet code formatting on save