aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazukazuinaina <ypa.ypa.ypa.t@gmail.com>2019-12-25 02:46:01 +0900
committerkazukazuinaina <ypa.ypa.ypa.t@gmail.com>2019-12-25 02:46:01 +0900
commit210eac55674ed7f4c629f98f7cace7ac4b8ed6f1 (patch)
tree09d39e71a84ce3cce074fa7459b99c0d2ffb7cbb
parent6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (diff)
downloadvim-lsp-settings-210eac55674ed7f4c629f98f7cace7ac4b8ed6f1.tar.gz
vim-lsp-settings-210eac55674ed7f4c629f98f7cace7ac4b8ed6f1.tar.bz2
vim-lsp-settings-210eac55674ed7f4c629f98f7cace7ac4b8ed6f1.zip
add check duplicate
-rw-r--r--plugin/lsp_settings.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim
index 3f7df59..1dba429 100644
--- a/plugin/lsp_settings.vim
+++ b/plugin/lsp_settings.vim
@@ -1,3 +1,8 @@
+if exists('g:loaded_lsp_settings')
+ finish
+endif
+let g:loaded_lsp_settings= 1
+
let s:settings_dir = expand('<sfile>:h:h').'/settings'
let s:installer_dir = expand('<sfile>:h:h').'/installer'
let s:servers_dir = expand('<sfile>:h:h').'/servers'