mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/jdtls: allow rawLua in settings.cmd
This commit is contained in:
parent
e83c7fc2e7
commit
e9a85eed8b
2 changed files with 15 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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')"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue