mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58:43 +02:00
plugins/nvim-jdtls: add data and configuration options (#308)
This commit is contained in:
parent
cbf6c56385
commit
75f7b22f21
2 changed files with 83 additions and 10 deletions
|
@ -1,13 +1,15 @@
|
|||
{pkgs}: {
|
||||
empty = {
|
||||
plugins.nvim-jdtls.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.nvim-jdtls = {
|
||||
enable = true;
|
||||
|
||||
cmd = ["${pkgs.jdt-language-server}/bin/jdt-language-server"];
|
||||
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'})";
|
||||
|
||||
|
@ -20,4 +22,13 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
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