mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 17:45:03 +02:00
plugins/nvim-jdtls: rename to jdtls, migrate to mkNeovimPlugin
This commit is contained in:
parent
d67fcbd1d3
commit
7114362f36
7 changed files with 194 additions and 189 deletions
46
plugins/by-name/jdtls/settings-options.nix
Normal file
46
plugins/by-name/jdtls/settings-options.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
lib:
|
||||
let
|
||||
inherit (lib) types;
|
||||
inherit (lib.nixvim) defaultNullOpts mkNullOrOption mkNullOrOption';
|
||||
in
|
||||
{
|
||||
cmd = mkNullOrOption' {
|
||||
type = with types; listOf str;
|
||||
example = [
|
||||
"java"
|
||||
"-data"
|
||||
"/path/to/your/workspace"
|
||||
"-configuration"
|
||||
"/path/to/your/configuration"
|
||||
"-foo"
|
||||
"bar"
|
||||
];
|
||||
description = ''
|
||||
The command that starts the language server.
|
||||
'';
|
||||
};
|
||||
|
||||
root_dir =
|
||||
defaultNullOpts.mkStr { __raw = "require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'})"; }
|
||||
''
|
||||
Function to identify the root directory from which to run the language server.
|
||||
'';
|
||||
|
||||
settings = mkNullOrOption (with types; attrsOf anything) ''
|
||||
Here you can configure `eclipse.jdt.ls` specific settings.
|
||||
|
||||
See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request
|
||||
for a list of options.
|
||||
'';
|
||||
|
||||
init_options = mkNullOrOption types.attrs ''
|
||||
Language server `initializationOptions`.
|
||||
|
||||
You need to extend the `bundles` with paths to jar files if you want to use additional
|
||||
`eclipse.jdt.ls` plugins.
|
||||
|
||||
See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation
|
||||
|
||||
If you don't plan on using the debugger or other `eclipse.jdt.ls` plugins, ignore this option
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue