diff options
| author | thchha <43604322+thchha@users.noreply.github.com> | 2020-05-03 03:33:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-03 10:33:08 +0900 |
| commit | 8a3d0d14ef59c53d4c8edee866e47be18eb5aa81 (patch) | |
| tree | 3205193d2d7fbecd6077c77a7b8e15d6f54da09a /lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-8a3d0d14ef59c53d4c8edee866e47be18eb5aa81.tar nvim-lspconfig-8a3d0d14ef59c53d4c8edee866e47be18eb5aa81.tar.gz nvim-lspconfig-8a3d0d14ef59c53d4c8edee866e47be18eb5aa81.tar.bz2 nvim-lspconfig-8a3d0d14ef59c53d4c8edee866e47be18eb5aa81.tar.lz nvim-lspconfig-8a3d0d14ef59c53d4c8edee866e47be18eb5aa81.tar.xz nvim-lspconfig-8a3d0d14ef59c53d4c8edee866e47be18eb5aa81.tar.zst nvim-lspconfig-8a3d0d14ef59c53d4c8edee866e47be18eb5aa81.zip | |
Added support for the kotlin-language-server (#205)
* Added support for the kotlin-language-server
* Added support for the kotlin-language-server
* replaced hardtabs with softtabs
added vim-layouting hint
removed noise: log-level already defined in default config; grab root_dir explicitly
replaced vscode in favor of package_json
* removed unused global variable for passing lua-lint-check
* updated content of README with configuration options from package.json (https://raw.githubusercontent.com/fwcd/vscode-kotlin/master/package.json)
* intendation of first item corrected
* removed invalid offsetEncoding, set via util.utf8_config
> The provided utf8_confg from util.lua is intended for usages of the protocol extensions with clangd (https://clangd.llvm.org/extensions.html#utf-8-offsets)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp/kotlin_language_server.lua | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lua/nvim_lsp/kotlin_language_server.lua b/lua/nvim_lsp/kotlin_language_server.lua new file mode 100644 index 00000000..15fb995a --- /dev/null +++ b/lua/nvim_lsp/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 'nvim_lsp/util' +local configs = require 'nvim_lsp/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 |
