From 724e7c80344837b3584e4c34848c147380c44478 Mon Sep 17 00:00:00 2001 From: Glyphack Date: Sat, 16 Dec 2023 14:11:20 +0100 Subject: [PATCH] docs(kotlin_language_server): Add storage path --- .../kotlin_language_server.lua | 27 +++++-------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/lua/lspconfig/server_configurations/kotlin_language_server.lua b/lua/lspconfig/server_configurations/kotlin_language_server.lua index c7f1ae6409..9478790ec3 100644 --- a/lua/lspconfig/server_configurations/kotlin_language_server.lua +++ b/lua/lspconfig/server_configurations/kotlin_language_server.lua @@ -25,7 +25,6 @@ return { root_dir = util.root_pattern(unpack(root_files)), cmd = { bin_name }, init_options = { - -- should be the root dir of the project storagePath = vim.loop.os_homedir(), }, }, @@ -43,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 = vim.loop.os_homedir(), + }, }, }, }