From 4eccf3e86c7399be892d6e25bf253e33fa28a9e5 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 23 Jan 2020 22:58:06 +0900 Subject: Add some LSP but work in progress. --- plugin/lsp_settings.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugin') 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] -- cgit v1.2.3-54-g00ecf