From bb8125efca2577008b6fb15c4ed413af0c360cbc Mon Sep 17 00:00:00 2001 From: Yuta Sakurai Date: Fri, 3 Jan 2020 16:48:30 +0900 Subject: Add clojure-lsp root-uri settings(for leiningen, shadow-cljs, deps.edn) --- settings/clojure-lsp.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'settings') diff --git a/settings/clojure-lsp.vim b/settings/clojure-lsp.vim index f50e637..2b96ee9 100644 --- a/settings/clojure-lsp.vim +++ b/settings/clojure-lsp.vim @@ -3,7 +3,8 @@ augroup vimlsp_settings_clojure_lsp LspRegisterServer { \ 'name': 'clojure-lsp', \ 'cmd': {server_info->lsp_settings#get('clojure-lsp', 'cmd', [lsp_settings#exec_path('clojure-lsp')])}, - \ 'root_uri':{server_info->lsp_settings#get('clojure-lsp', 'root_uri', lsp_settings#root_uri(['.git/']))}, + \ 'root_uri':{server_info->lsp_settings#get('clojure-lsp', 'root_uri', lsp_settings#root_uri([ + \ '.lein/', '.shadow-cljs/', '.git/', 'project.clj', 'deps.edn', 'shadow-cljs.edn']))}, \ 'initialization_options': lsp_settings#get('clojure-lsp', 'initialization_options', v:null), \ 'whitelist': lsp_settings#get('clojure-lsp', 'whitelist', ['clojure']), \ 'blacklist': lsp_settings#get('clojure-lsp', 'blacklist', []), -- cgit v1.2.3-54-g00ecf