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 /README.md | |
| 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 'README.md')
| -rw-r--r-- | README.md | 131 |
1 files changed, 131 insertions, 0 deletions
@@ -240,6 +240,7 @@ that config. - [intelephense](#intelephense) - [jsonls](#jsonls) - [julials](#julials) +- [kotlin_language_server](#kotlin_language_server) - [leanls](#leanls) - [metals](#metals) - [nimls](#nimls) @@ -2263,6 +2264,136 @@ require'nvim_lsp'.julials.setup{} root_dir = <function 1> ``` +## kotlin_language_server + +https://github.com/fwcd/kotlin-language-server + +Kotlin Language Server. +Requirements: + * java 8+ on path + * (optional) kotlinc on path for gradle-less projects + * `kotlin`-filetype support for vim. + +Simply follow the build instructions from the source, summarized: + +```bash +git clone && cd +./gradlew :server:installDist +``` + +Gradle will download itself and all dependencies. +Output to start the server is a script (unix or \*.bat), located at: +`/path/to/git/of/kotlin-language-server/server/build/install/server/bin/` + +This will result in one executable script (unix) and one \*.bat which are used in the configuration below. + +<details><summary>Available settings:</summary> + +- **`kotlin.languageServer.enabled`**: `boolean` + + default: `true` + + description: `[Recommended] Specifies whether the language server should be used. When enabled the extension will provide code completions and linting, otherwise just syntax highlighting. Might require a reload to apply.` + +- **`kotlin.languageServer.path`**: `string` + + default: `""` + + description: `Optionally a custom path to the language server executable.` + +- **`kotlin.languageServer.transport`**: `string` + + default: `stdio` + + enum: [`stdio`, `tcp`], + description: `The transport layer beneath the language server protocol. Note that the extension will launch the server even if a TCP socket is used.`, + +- **`kotlin.languageServer.port`**: `integer` + + default: `` + + description: `The port to which the client will attempt to connect to. A random port is used if zero. Only used if the transport layer is TCP.`, + +- **`kotlin.trace.server`**: `string` + + default: `"off"` + + enum: [ + `off`, + `messages`, + `verbose` + ], + description: `Traces the communication between VSCode and the Kotlin language server.`, + scope: `window` + +- **`kotlin.compiler.jvm.target`**: `string` + + default: `"default"` + + description: `Specifies the JVM target, e.g. \`1.6\` or \`1.8\`` + +- **`kotlin.linting.debounceTime`**: `integer` + + default: `250` + + description: `[DEBUG] Specifies the debounce time limit. Lower to increase responsiveness at the cost of possibile stability issues.` + +- **`kotlin.completion.snippets.enabled`**: `boolean` + + default: `true` + + description: `Specifies whether code completion should provide snippets (true) or plain-text items (false).` + +- **`kotlin.debugAdapter.enabled`**: `boolean` + + default: `true` + + description: `[Recommended] Specifies whether the debug adapter should be used. When enabled a debugger for Kotlin will be available.` + +- **`kotlin.debugAdapter.path`**: `string` + + default: `""` + + description: `Optionally a custom path to the debug adapter executable.` + +- **`kotlin.debounceTime`**: `integer` + + default: `250` + + description: `[DEPRECATED] Specifies the debounce time limit. Lower to increase responsiveness at the cost of possibile stability issues.`, + deprecationMessage: `Use 'kotlin.linting.debounceTime' instead` + +- **`kotlin.externalSources.useKlsScheme`**: `boolean` + + default: `true` + + description: `[Recommended] Specifies whether URIs inside JARs should be represented using the 'kls'-scheme.` + +- **`kotlin.externalSources.autoConvertToKotlin`**: `boolean` + + default: `true` + + description: `Specifies whether decompiled/external classes should be auto-converted to Kotlin.` + +- **`kotlin.snippetsEnabled`**: `boolean` + + default: `true` + + description: `[DEPRECATED] Specifies whether code completion should provide snippets (true) or plain-text items (false).`, + deprecationMessage: `Use 'kotlin.completion.snippets.enabled'` + +</details> + +configuration: + +```lua +require 'nvim_lsp'.kotlin_language_server.setup { + -- Default Values: + cmd = { "/path/to/git/of/kotlin-language-server/" .. "server/build/install/server/bin/kotlin-language-server" }; -- startup script +}; + +``` + ## leanls https://github.com/leanprover/lean-client-js/tree/master/lean-language-server |
