mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
43 lines
780 B
Nix
43 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"
|
|
];
|
|
};
|
|
};
|
|
}
|