mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 12:28:32 +00:00
kotlin: cleaning up and fixing docs render
This commit is contained in:
parent
f10e356ee5
commit
25989fd71a
1 changed files with 2 additions and 5 deletions
|
@ -15,9 +15,6 @@
|
||||||
|
|
||||||
cfg = config.vim.languages.kotlin;
|
cfg = config.vim.languages.kotlin;
|
||||||
|
|
||||||
# Creating a version of the LSP with access to the kotlin binary.
|
|
||||||
# This is necessary for the LSP to load the standard library
|
|
||||||
|
|
||||||
defaultDiagnosticsProvider = ["ktlint"];
|
defaultDiagnosticsProvider = ["ktlint"];
|
||||||
diagnosticsProviders = {
|
diagnosticsProviders = {
|
||||||
ktlint = {
|
ktlint = {
|
||||||
|
@ -49,12 +46,12 @@ in {
|
||||||
type = package;
|
type = package;
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
pkgs.symlinkJoin {
|
pkgs.symlinkJoin {
|
||||||
name = "Kotlin-LSP-Wrapped";
|
name = "kotlin-language-server-wrapped";
|
||||||
paths = [pkgs.kotlin-language-server];
|
paths = [pkgs.kotlin-language-server];
|
||||||
nativeBuildInputs = [pkgs.makeWrapper];
|
nativeBuildInputs = [pkgs.makeWrapper];
|
||||||
postBuild = '''
|
postBuild = '''
|
||||||
wrapProgram $out/bin/kotlin-language-server \
|
wrapProgram $out/bin/kotlin-language-server \
|
||||||
--prefix PATH : ${pkgs.lib.makeBinPath [pkgs.kotlin]}
|
--prefix PATH : ''${pkgs.kotlin}/bin
|
||||||
''';
|
''';
|
||||||
};
|
};
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Reference in a new issue