aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/kotlin_language_server.lua
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-09-06 17:49:21 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-09-06 17:49:21 +0900
commitddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de (patch)
treec301c7a765535dcb5387d76cc71e28d845dcce23 /lua/lspconfig/kotlin_language_server.lua
parentMerge pull request #238 from steelsojka/angular-ls (diff)
downloadnvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar
nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.gz
nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.bz2
nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.lz
nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.xz
nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.zst
nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.zip
Rename nvim_lsp to lspconfig
Diffstat (limited to 'lua/lspconfig/kotlin_language_server.lua')
-rw-r--r--lua/lspconfig/kotlin_language_server.lua52
1 files changed, 52 insertions, 0 deletions
diff --git a/lua/lspconfig/kotlin_language_server.lua b/lua/lspconfig/kotlin_language_server.lua
new file mode 100644
index 00000000..373c782c
--- /dev/null
+++ b/lua/lspconfig/kotlin_language_server.lua
@@ -0,0 +1,52 @@
+--- default config for gradle-projects of the
+--- kotlin-language-server: https://github.com/fwcd/kotlin-language-server
+---
+--- This server requires vim to be aware of the kotlin-filetype.
+--- You could refer for this capability to:
+--- https://github.com/udalov/kotlin-vim (recommended)
+--- Note that there is no LICENSE specified yet.
+
+local util = require 'lspconfig/util'
+local configs = require 'lspconfig/configs'
+
+configs.kotlin_language_server = {
+ default_config = {
+ filetypes = { "kotlin" };
+ root_dir = util.root_pattern("settings.gradle");
+ };
+ docs = {
+ package_json = "https://raw.githubusercontent.com/fwcd/vscode-kotlin/master/package.json";
+ description = [[
+ A kotlin language server which was developed for internal usage and
+ released afterwards. Maintaining is not done by the original author,
+ but by fwcd.
+
+ It is builded via gradle and developed on github.
+ Source and additional description:
+ https://github.com/fwcd/kotlin-language-server
+ ]];
+ default_config = {
+ root_dir = [[root_pattern("settings.gradle")]];
+ 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
+
+ ]];
+ };
+ };
+}
+
+-- vim:et ts=2 sw=2