diff --git a/lua/lspconfig/server_configurations/kotlin_language_server.lua b/lua/lspconfig/server_configurations/kotlin_language_server.lua index e1c41177c0..5c909c51a1 100644 --- a/lua/lspconfig/server_configurations/kotlin_language_server.lua +++ b/lua/lspconfig/server_configurations/kotlin_language_server.lua @@ -42,28 +42,16 @@ return { You could refer for this capability to: https://github.com/udalov/kotlin-vim (recommended) Note that there is no LICENSE specified yet. + + For faster startup, you can setup caching by specifying a storagePath + in the init_options. The default is your home directory. ]], default_config = { - root_dir = [[root_pattern("settings.gradle")]], + root_dir = [[See source]], cmd = { 'kotlin-language-server' }, - capabilities = [[ - smart code completion, - diagnostics, - hover, - document symbols, - definition lookup, - method signature help, - dependency resolution, - additional plugins from: https://github.com/fwcd - - Snipped of License (refer to source for full License): - - The MIT License (MIT) - - Copyright (c) 2016 George Fraser - Copyright (c) 2018 fwcd - - ]], + init_options = { + storagePath = util.root_pattern(unpack(root_files))(vim.api.nvim_get_current_buf()), + }, }, }, }