diff options
-rw-r--r-- | settings.json | 90 | ||||
-rw-r--r-- | settings/clojure-lsp.vim | 2 | ||||
-rw-r--r-- | settings/eclipse-jdt-ls.vim | 2 | ||||
-rw-r--r-- | settings/elm-language-server.vim | 2 | ||||
-rw-r--r-- | settings/erlang-ls.vim | 2 | ||||
-rw-r--r-- | settings/eslint-language-server.vim | 2 | ||||
-rw-r--r-- | settings/gopls.vim | 2 | ||||
-rw-r--r-- | settings/gql-language-server.vim | 2 | ||||
-rw-r--r-- | settings/groovy-language-server.vim | 2 | ||||
-rw-r--r-- | settings/metals.vim | 2 | ||||
-rw-r--r-- | settings/ra_lsp_server.vim | 2 | ||||
-rw-r--r-- | settings/reason-language-server.vim | 2 | ||||
-rw-r--r-- | settings/rls.vim | 2 | ||||
-rw-r--r-- | settings/sourcekit-lsp.vim | 2 | ||||
-rw-r--r-- | settings/typescript-language-server.vim | 2 | ||||
-rw-r--r-- | settings/vim-language-server.vim | 2 | ||||
-rw-r--r-- | settings/vls.vim | 2 |
17 files changed, 101 insertions, 21 deletions
diff --git a/settings.json b/settings.json index 7847d2b..943d849 100644 --- a/settings.json +++ b/settings.json @@ -36,7 +36,14 @@ "clojure": [ { "command": "clojure-lsp", - "requires": [] + "requires": [], + "root_uri_patterns": [ + ".lein/", + ".shadow-cljs/", + "project.clj", + "deps.edn", + "shadow-cljs.edn" + ] } ], "cobol": [ @@ -115,6 +122,9 @@ "requires": [ "npm" ], + "root_uri_patterns": [ + "elm.json" + ], "vim-plugin": { "extensions": [ "elm" @@ -130,6 +140,9 @@ "make", "rebar3" ], + "root_uri_patterns": [ + "rebar.config" + ], "vim-plugin": { "extensions": [ "erl" @@ -190,6 +203,9 @@ "command": "gopls", "requires": [ "go" + ], + "root_uri_patterns": [ + "go.mod" ] } ], @@ -199,6 +215,11 @@ "requires": [ "npm", "watchman" + ], + "root_uri_patterns": [ + "package.json", + "tsconfig.json", + ".gqlconfig" ] } ], @@ -207,6 +228,9 @@ "command": "groovy-language-server", "requires": [ "java" + ], + "root_uri_patterns": [ + "build.gradle" ] } ], @@ -226,6 +250,10 @@ "command": "eclipse-jdt-ls", "requires": [ "java" + ], + "root_uri_patterns": [ + "pom.xml", + "build.gradle" ] } ], @@ -234,6 +262,10 @@ "command": "typescript-language-server", "requires": [ "npm" + ], + "root_uri_patterns": [ + "package.json", + "tsconfig.json" ] }, { @@ -245,7 +277,12 @@ { "command": "eslint-language-server", "requires": [ - "git", "npm" + "git", + "npm" + ], + "root_uri_patterns": [ + "package.json", + "tsconfig.json" ] } ], @@ -254,6 +291,10 @@ "command": "typescript-language-server", "requires": [ "npm" + ], + "root_uri_patterns": [ + "package.json", + "tsconfig.json" ] }, { @@ -444,6 +485,9 @@ { "command": "reason-language-server", "requires": [], + "root_uri_patterns": [ + "package.json" + ], "vim-plugin": { "extensions": [ "re", @@ -464,11 +508,17 @@ "rust": [ { "command": "rls", - "requires": [] + "requires": [], + "root_uri_patterns": [ + "Cargo.toml" + ] }, { "command": "ra_lsp_server", - "requires": [] + "requires": [], + "root_uri_patterns": [ + "Cargo.toml" + ] } ], "sass": [ @@ -484,6 +534,9 @@ "command": "metals", "requires": [ "java" + ], + "root_uri_patterns": [ + "build.sbt" ] } ], @@ -515,6 +568,13 @@ "requires": [ "sourcekit-lsp" ], + "root_uri_patterns": [ + "Package.swift", + ".xcodeproj", + ".xcworkspace", + "Cartfile", + "Podfile" + ], "vim-plugin": { "extensions": [ "swift" @@ -559,12 +619,21 @@ "command": "typescript-language-server", "requires": [ "npm" + ], + "root_uri_patterns": [ + "package.json", + "tsconfig.json" ] }, { "command": "eslint-language-server", "requires": [ - "git", "npm" + "git", + "npm" + ], + "root_uri_patterns": [ + "package.json", + "tsconfig.json" ] } ], @@ -573,6 +642,10 @@ "command": "typescript-language-server", "requires": [ "npm" + ], + "root_uri_patterns": [ + "package.json", + "tsconfig.json" ] } ], @@ -581,6 +654,10 @@ "command": "vim-language-server", "requires": [ "npm" + ], + "root_uri_patterns": [ + ".vim/", + "vimfiles/" ] } ], @@ -590,6 +667,9 @@ "requires": [ "npm" ], + "root_uri_patterns": [ + "package.json" + ], "vim-plugin": { "extensions": [ "vue" diff --git a/settings/clojure-lsp.vim b/settings/clojure-lsp.vim index ae431dc..8072295 100644 --- a/settings/clojure-lsp.vim +++ b/settings/clojure-lsp.vim @@ -3,7 +3,7 @@ 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(['.lein/', '.shadow-cljs/', 'project.clj', 'deps.edn', 'shadow-cljs.edn']))}, + \ 'root_uri':{server_info->lsp_settings#get('clojure-lsp', 'root_uri', lsp_settings#root_uri())}, \ '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', []), diff --git a/settings/eclipse-jdt-ls.vim b/settings/eclipse-jdt-ls.vim index 2577cdc..b9610df 100644 --- a/settings/eclipse-jdt-ls.vim +++ b/settings/eclipse-jdt-ls.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_eclipse_jdt_ls LspRegisterServer { \ 'name': 'eclipse-jdt-ls', \ 'cmd': {server_info->lsp_settings#get('eclipse-jdt-ls', 'cmd', [lsp_settings#exec_path('eclipse-jdt-ls')])}, - \ 'root_uri':{server_info->lsp_settings#get('eclipse-jdt-ls', 'root_uri', lsp_settings#root_uri(['pom.xml', 'build.gradle']))}, + \ 'root_uri':{server_info->lsp_settings#get('eclipse-jdt-ls', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('eclipse-jdt-ls', 'initialization_options', v:null), \ 'whitelist': lsp_settings#get('eclipse-jdt-ls', 'whitelist', ['java']), \ 'blacklist': lsp_settings#get('eclipse-jdt-ls', 'blacklist', []), diff --git a/settings/elm-language-server.vim b/settings/elm-language-server.vim index 709d02b..b8026e3 100644 --- a/settings/elm-language-server.vim +++ b/settings/elm-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_elm_language_server LspRegisterServer { \ 'name': 'elm-language-server', \ 'cmd': {server_info->lsp_settings#get('elm-language-server', 'cmd', [lsp_settings#exec_path('elm-language-server')])}, - \ 'root_uri':{server_info->lsp_settings#get('elm-language-server', 'root_uri', lsp_settings#root_uri(['elm.json']))}, + \ 'root_uri':{server_info->lsp_settings#get('elm-language-server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('elm-language-server', 'initialization_options', {'elmPath': 'elm', 'runtime': 'node', 'elmFormatPath': 'elm-format', 'elmTestPath': 'elm-test'}), \ 'whitelist': lsp_settings#get('elm-language-server', 'whitelist', ['elm', 'elm.tsx']), \ 'blacklist': lsp_settings#get('elm-language-server', 'blacklist', []), diff --git a/settings/erlang-ls.vim b/settings/erlang-ls.vim index 8239d6b..d4b7c64 100644 --- a/settings/erlang-ls.vim +++ b/settings/erlang-ls.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_erlang_ls LspRegisterServer { \ 'name': 'erlang-ls', \ 'cmd': {server_info->lsp_settings#get('erlang-ls', 'cmd', [lsp_settings#exec_path('erlang-ls'), '--transport', 'stdio'])}, - \ 'root_uri':{server_info->lsp_settings#get('erlang-ls', 'root_uri', lsp_settings#root_uri(['rebar.config']))}, + \ 'root_uri':{server_info->lsp_settings#get('erlang-ls', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('erlang-ls', 'initialization_options', {}), \ 'whitelist': lsp_settings#get('erlang-ls', 'whitelist', ['erlang']), \ 'blacklist': lsp_settings#get('erlang-ls', 'blacklist', []), diff --git a/settings/eslint-language-server.vim b/settings/eslint-language-server.vim index eed9082..a469204 100644 --- a/settings/eslint-language-server.vim +++ b/settings/eslint-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_eslint_language_server LspRegisterServer { \ 'name': 'eslint-language-server', \ 'cmd': {server_info->lsp_settings#get('eslint-language-server', 'cmd', [lsp_settings#exec_path('eslint-language-server'), '--stdio'])}, - \ 'root_uri':{server_info->lsp_settings#get('eslint-language-server', 'root_uri', lsp_settings#root_uri(['package.json', 'tsconfig.json']))}, + \ 'root_uri':{server_info->lsp_settings#get('eslint-language-server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('eslint-language-server', 'initialization_options', {'diagnostics': 'true'}), \ 'whitelist': lsp_settings#get('eslint-language-server', 'whitelist', ['javascript', 'javascriptreact', 'typescript', 'typescriptreact', 'typescript.tsx']), \ 'blacklist': lsp_settings#get('eslint-language-server', 'blacklist', []), diff --git a/settings/gopls.vim b/settings/gopls.vim index ef16622..9a7481e 100644 --- a/settings/gopls.vim +++ b/settings/gopls.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_gopls LspRegisterServer { \ 'name': 'gopls', \ 'cmd': {server_info->lsp_settings#get('gopls', 'cmd', [lsp_settings#exec_path('gopls')])}, - \ 'root_uri':{server_info->lsp_settings#get('gopls', 'root_uri', lsp_settings#root_uri(['go.mod']))}, + \ 'root_uri':{server_info->lsp_settings#get('gopls', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('gopls', 'initialization_options', {"diagnostics": v:true, 'completeUnimported': v:true, 'matcher': 'fuzzy'}), \ 'whitelist': lsp_settings#get('gopls', 'whitelist', ['go']), \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []), diff --git a/settings/gql-language-server.vim b/settings/gql-language-server.vim index 2fd42e2..dfe6d01 100644 --- a/settings/gql-language-server.vim +++ b/settings/gql-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_gql_language_server LspRegisterServer { \ 'name': 'gql-language-server', \ 'cmd': {server_info->lsp_settings#get('gql-language-server', 'cmd', [lsp_settings#exec_path('gql-language-server'), '--stdio'])}, - \ 'root_uri':{server_info->lsp_settings#get('gql-language-server', 'root_uri', lsp_settings#root_uri(['package.json', 'tsconfig.json', '.gqlconfig']))}, + \ 'root_uri':{server_info->lsp_settings#get('gql-language-server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('gql-language-server', 'initialization_options', {'diagnostics': 'true'}), \ 'whitelist': lsp_settings#get('gql-language-server', 'whitelist', ['graphql']), \ 'blacklist': lsp_settings#get('gql-language-server', 'blacklist', []), diff --git a/settings/groovy-language-server.vim b/settings/groovy-language-server.vim index f642e45..b4a31f2 100644 --- a/settings/groovy-language-server.vim +++ b/settings/groovy-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_groovy_language_server LspRegisterServer { \ 'name': 'groovy-language-server', \ 'cmd': {server_info->lsp_settings#get('groovy-language-server', 'cmd', [lsp_settings#exec_path('groovy-language-server')])}, - \ 'root_uri':{server_info->lsp_settings#get('groovy-language-server', 'root_uri', lsp_settings#root_uri(['build.gradle']))}, + \ 'root_uri':{server_info->lsp_settings#get('groovy-language-server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('groovy-language-server', 'initialization_options', {}), \ 'whitelist': lsp_settings#get('groovy-language-server', 'whitelist', ['groovy']), \ 'blacklist': lsp_settings#get('groovy-language-server', 'blacklist', []), diff --git a/settings/metals.vim b/settings/metals.vim index bf11930..18e53bd 100644 --- a/settings/metals.vim +++ b/settings/metals.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_metals LspRegisterServer { \ 'name': 'metals', \ 'cmd': {server_info->lsp_settings#get('metals', 'cmd', [lsp_settings#exec_path('metals')])}, - \ 'root_uri':{server_info->lsp_settings#get('metals', 'root_uri', lsp_settings#root_uri(['build.sbt']))}, + \ 'root_uri':{server_info->lsp_settings#get('metals', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('metals', 'initialization_options', v:null), \ 'whitelist': lsp_settings#get('metals', 'whitelist', ['scala', 'sbt']), \ 'blacklist': lsp_settings#get('metals', 'blacklist', []), diff --git a/settings/ra_lsp_server.vim b/settings/ra_lsp_server.vim index 005c06b..b4e4e87 100644 --- a/settings/ra_lsp_server.vim +++ b/settings/ra_lsp_server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_ra_lsp_server LspRegisterServer { \ 'name': 'ra_lsp_server', \ 'cmd': {server_info->lsp_settings#get('ra_lsp_server', 'cmd', [lsp_settings#exec_path('ra_lsp_server')])}, - \ 'root_uri':{server_info->lsp_settings#get('ra_lsp_server', 'root_uri', lsp_settings#root_uri(['Cargo.toml']))}, + \ 'root_uri':{server_info->lsp_settings#get('ra_lsp_server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('ra_lsp_server', 'initialization_options', v:null), \ 'whitelist': lsp_settings#get('ra_lsp_server', 'whitelist', ['rust']), \ 'blacklist': lsp_settings#get('ra_lsp_server', 'blacklist', []), diff --git a/settings/reason-language-server.vim b/settings/reason-language-server.vim index 9e9f778..9bdbe4c 100644 --- a/settings/reason-language-server.vim +++ b/settings/reason-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_reason_language_server LspRegisterServer { \ 'name': 'reason-language-server', \ 'cmd': {server_info->lsp_settings#get('reason-language-server', 'cmd', [lsp_settings#exec_path('reason-language-server')])}, - \ 'root_uri':{server_info->lsp_settings#get('reason-language-server', 'root_uri', lsp_settings#root_uri(['package.json']))}, + \ 'root_uri':{server_info->lsp_settings#get('reason-language-server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('reason-language-server', 'initialization_options', {}), \ 'whitelist': lsp_settings#get('reason-language-server', 'whitelist', ['reason']), \ 'blacklist': lsp_settings#get('reason-language-server', 'blacklist', []), diff --git a/settings/rls.vim b/settings/rls.vim index 6e87086..22aba06 100644 --- a/settings/rls.vim +++ b/settings/rls.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_rls LspRegisterServer { \ 'name': 'rls', \ 'cmd': {server_info->lsp_settings#get('rls', 'cmd', [lsp_settings#exec_path('rls')])}, - \ 'root_uri':{server_info->lsp_settings#get('rls', 'root_uri', lsp_settings#root_uri(['Cargo.toml']))}, + \ 'root_uri':{server_info->lsp_settings#get('rls', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('rls', 'initialization_options', v:null), \ 'whitelist': lsp_settings#get('rls', 'whitelist', ['rust']), \ 'blacklist': lsp_settings#get('rls', 'blacklist', []), diff --git a/settings/sourcekit-lsp.vim b/settings/sourcekit-lsp.vim index fcbbf1f..df4c9fc 100644 --- a/settings/sourcekit-lsp.vim +++ b/settings/sourcekit-lsp.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_sourcekit_lsp LspRegisterServer { \ 'name': 'sourcekit-lsp', \ 'cmd': {server_info->lsp_settings#get('sourcekit-lsp', 'cmd', [lsp_settings#exec_path('sourcekit-lsp')])}, - \ 'root_uri':{server_info->lsp_settings#get('sourcekit-lsp', 'root_uri', lsp_settings#root_uri(['Package.swift', '.xcodeproj', '.xcworkspace', 'Cartfile', 'Podfile']))}, + \ 'root_uri':{server_info->lsp_settings#get('sourcekit-lsp', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('sourcekit-lsp', 'initialization_options', {}), \ 'whitelist': lsp_settings#get('sourcekit-lsp', 'whitelist', ['swift']), \ 'blacklist': lsp_settings#get('sourcekit-lsp', 'blacklist', []), diff --git a/settings/typescript-language-server.vim b/settings/typescript-language-server.vim index e02fb31..634f3a1 100644 --- a/settings/typescript-language-server.vim +++ b/settings/typescript-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_typescript_language_server LspRegisterServer { \ 'name': 'typescript-language-server', \ 'cmd': {server_info->lsp_settings#get('typescript-language-server', 'cmd', [lsp_settings#exec_path('typescript-language-server'), '--stdio'])}, - \ 'root_uri':{server_info->lsp_settings#get('typescript-language-server', 'root_uri', lsp_settings#root_uri(['package.json', 'tsconfig.json']))}, + \ 'root_uri':{server_info->lsp_settings#get('typescript-language-server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('typescript-language-server', 'initialization_options', {'diagnostics': 'true'}), \ 'whitelist': lsp_settings#get('typescript-language-server', 'whitelist', ['javascript', 'javascriptreact', 'typescript', 'typescriptreact', 'typescript.tsx']), \ 'blacklist': lsp_settings#get('typescript-language-server', 'blacklist', []), diff --git a/settings/vim-language-server.vim b/settings/vim-language-server.vim index 986b36e..58b2f8d 100644 --- a/settings/vim-language-server.vim +++ b/settings/vim-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_vim_language_server LspRegisterServer { \ 'name': 'vim-language-server', \ 'cmd': {server_info->lsp_settings#get('vim-language-server', 'cmd', [lsp_settings#exec_path('vim-language-server'), '--stdio'])}, - \ 'root_uri':{server_info->lsp_settings#get('vim-language-server', 'root_uri', lsp_settings#root_uri(['.vim/', 'vimfiles/']))}, + \ 'root_uri':{server_info->lsp_settings#get('vim-language-server', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': extend({'vimruntime': $VIMRUNTIME, 'runtimepath': &rtp}, lsp_settings#get('vim-language-server', 'initialization_options', {}), 'force'), \ 'whitelist': lsp_settings#get('vim-language-server', 'whitelist', ['vim']), \ 'blacklist': lsp_settings#get('vimbash-language-server', 'blacklist', []), diff --git a/settings/vls.vim b/settings/vls.vim index c9575af..e3e960f 100644 --- a/settings/vls.vim +++ b/settings/vls.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_vls LspRegisterServer { \ 'name': 'vls', \ 'cmd': {server_info->lsp_settings#get('vls', 'cmd', [lsp_settings#exec_path('vls'), '--stdio'])}, - \ 'root_uri':{server_info->lsp_settings#get('vls', 'root_uri', lsp_settings#root_uri(['package.json']))}, + \ 'root_uri':{server_info->lsp_settings#get('vls', 'root_uri', lsp_settings#root_uri())}, \ 'initialization_options': lsp_settings#get('vls', 'initialization_options', {'config': {'vetur': {'useWorkspaceDependencies': v:false, 'validation': {'template': v:true, 'style': v:true, 'script': v:true}, 'completion': {'autoImport': v:false, 'useScaffoldSnippets': v:false, 'tagCasing': 'kebab'}, 'format': {'defaultFormatter': {'js': '', 'ts': ''}, 'defaultFormatterOptions': {}, 'scriptInitialIndent': v:false, 'styleInitialIndent': v:false}, 'dev': {'logLevel': 'DEBUG'}}, 'css': {}, 'html': {'suggest': {}}, 'javascript': {'format': {}}, 'typescript': {'format': {}}, 'emmet': {}, 'stylusSupremacy': {}}}), \ 'whitelist': lsp_settings#get('vls', 'whitelist', ['vue']), \ 'blacklist': lsp_settings#get('vls', 'blacklist', []), |