mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 02:04:31 +02:00
44 lines
780 B
Nix
44 lines
780 B
Nix
|
{ pkgs, ... }:
|
||
|
{
|
||
|
example = {
|
||
|
plugins.jdtls = {
|
||
|
enable = true;
|
||
|
jdtLanguageServerPackage = null;
|
||
|
|
||
|
settings = {
|
||
|
cmd = [
|
||
|
"${pkgs.jdt-language-server}/bin/jdt-language-server"
|
||
|
"-data"
|
||
|
"/dev/null"
|
||
|
"-configuration"
|
||
|
"/dev/null"
|
||
|
];
|
||
|
|
||
|
root_dir.__raw = "require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'})";
|
||
|
|
||
|
settings = {
|
||
|
java = { };
|
||
|
};
|
||
|
|
||
|
init_options = {
|
||
|
bundles = { };
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
dataAndConfiguration = {
|
||
|
plugins.jdtls = {
|
||
|
enable = true;
|
||
|
|
||
|
settings.cmd = [
|
||
|
"jdtls"
|
||
|
"-data"
|
||
|
"/path/to/my/project"
|
||
|
"-configuration"
|
||
|
"/path/to/configuration"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|