plugins/jdtls: allow rawLua in settings.cmd

This commit is contained in:
Gaetan Lepage 2025-04-11 15:56:14 +02:00 committed by nix-infra-bot
parent e83c7fc2e7
commit e9a85eed8b
2 changed files with 15 additions and 2 deletions

View file

@ -5,7 +5,7 @@ let
in in
{ {
cmd = mkNullOrOption' { cmd = mkNullOrOption' {
type = with types; listOf str; type = with types; listOf (maybeRaw str);
example = [ example = [
"java" "java"
"-data" "-data"

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { lib, pkgs, ... }:
{ {
example = { example = {
plugins.jdtls = { plugins.jdtls = {
@ -40,4 +40,17 @@
]; ];
}; };
}; };
rawStringInCmd = {
plugins.jdtls = {
enable = true;
settings = {
cmd = [
(lib.getExe pkgs.jdt-language-server)
{ __raw = "'--jvm-arg='..vim.api.nvim_eval('g:NVIM_LOMBOK')"; }
];
};
};
};
} }