aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-23 22:58:06 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-23 22:58:06 +0900
commit4eccf3e86c7399be892d6e25bf253e33fa28a9e5 (patch)
tree0c98ddd762c3fbbd4a6ce5aa0501de40f40ce683 /plugin
parent5e39101766a0a6fcc771077b5f6b0a21abfbdc01 (diff)
downloadvim-lsp-settings-4eccf3e86c7399be892d6e25bf253e33fa28a9e5.tar.gz
vim-lsp-settings-4eccf3e86c7399be892d6e25bf253e33fa28a9e5.tar.bz2
vim-lsp-settings-4eccf3e86c7399be892d6e25bf253e33fa28a9e5.zip
Add some LSP but work in progress.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_settings.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim
index 344d95e..264aa1f 100644
--- a/plugin/lsp_settings.vim
+++ b/plugin/lsp_settings.vim
@@ -204,6 +204,10 @@ function! s:vimlsp_load_or_suggest(ft) abort
if s:vimlsp_settings_get(l:server.command, 'disabled', 0)
continue
endif
+ let l:default = get(g:, 'lsp_settings_' . a:ft, '')
+ if !empty(l:default) && l:default != l:server.command
+ continue
+ endif
let l:command = s:vimlsp_settings_get(l:server.command, 'cmd', l:server.command)
if type(l:command) == type([])
let l:command = l:command[0]