update to nixvim scala metals and copilot configs

This commit is contained in:
Salar Rahmanian 2025-10-11 12:49:37 -07:00
parent c543995d4d
commit 0860e967f3
6 changed files with 81 additions and 5 deletions

View file

@ -4,14 +4,33 @@
programs.nixvim = {
plugins = {
# GitHub Copilot
copilot-vim.enable = true;
copilot-vim = {
enable = true;
};
# Avante AI assistant (imported from separate file)
# avante config is in avante.nix
};
globals = {
copilot_node_command = lib.mkForce "${pkgs.nodejs-slim}/bin/node";
copilot_node_command = lib.mkForce "${pkgs.nodejs}/bin/node";
copilot_no_tab_map = true;
copilot_assume_mapped = true;
};
# Copilot keymapping - use Ctrl+J to accept suggestion
keymaps = [
{
mode = "i";
key = "<C-J>";
action = "copilot#Accept(\"\\<CR>\")";
options = {
silent = true;
script = true;
expr = true;
replace_keycodes = false;
};
}
];
};
}
}

View file

@ -52,7 +52,33 @@
marksman.enable = true;
# Scala
metals.enable = true;
metals = {
enable = true;
settings.settings = {
bloopSbtAlreadyInstalled = true;
defaultBspToBuildTool = true;
enableBestEffort = true;
excludedPackages = [
"akka.actor.typed.javadsl"
"com.github.swagger.akka.javadsl"
];
initOptions = {
statusBarProvider = "on";
};
inlayHints = {
typeParameters.enable = true;
hintsInPatternMatch.enable = true;
};
mcpClient = "claude";
serverVersion = "latest.snapshot";
showImplicitArguments = true;
showImplicitConversionsAndClasses = true;
showInferredType = true;
startMcpServer = true;
superMethodLensesEnabled = true;
useGlobalExecutable = true;
};
};
# Nix
nil_ls.enable = true;
@ -76,4 +102,4 @@
tinymist.enable = true;
};
};
}
}