mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 01:25:22 +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
43
tests/test-sources/plugins/by-name/jdtls/default.nix
Normal file
43
tests/test-sources/plugins/by-name/jdtls/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
example = {
|
||||
plugins.nvim-jdtls = {
|
||||
enable = true;
|
||||
jdtLanguageServerPackage = null;
|
||||
cmd = [
|
||||
"${pkgs.jdt-language-server}/bin/jdt-language-server"
|
||||
"-data"
|
||||
"/dev/null"
|
||||
"-configuration"
|
||||
"/dev/null"
|
||||
];
|
||||
|
||||
rootDir.__raw = "require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'})";
|
||||
|
||||
settings = {
|
||||
java = { };
|
||||
};
|
||||
|
||||
initOptions = {
|
||||
bundles = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dataAndConfiguration = {
|
||||
plugins.nvim-jdtls = {
|
||||
enable = true;
|
||||
|
||||
data = "/path/to/my/project";
|
||||
configuration = "/path/to/configuration";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue