This commit is contained in:
Lucy Hochkamp 2025-09-10 15:33:48 +02:00
parent c999ed6520
commit 35c8ebb56a
No known key found for this signature in database
20 changed files with 670 additions and 405 deletions

View file

@ -1,30 +1,34 @@
{ pkgs, config, lib, inputs, ... }:
with lib;
let
cfg = config.xyno.helix;
in
{
options.xyno.helix.enable = lib.mkOption { default = false; };
config = lib.mkIf cfg.enable {
options.xyno.helix.enable = mkOption { default = false; };
options.xyno.helix.withLargeLSPs = mkOption { default = false; };
config = mkIf cfg.enable {
home.packages = with pkgs; [
jsonnet-language-server
jsonnet
nixpkgs-fmt
# omnisharp-roslyn
## ts
# nodePackages_latest.prettier
typescript
dprint
nodePackages_latest.typescript-language-server
nodePackages_latest.vscode-langservers-extracted
markdown-oxide
## python
# ruff-lsp
# nodePackages_latest.pyright
# inputs.csharp-language-server.packages.${pkgs.system}.csharp-language-server
] ++ (optionals cfg.withLargeLSPs [
netcoredbg
];
nodePackages_latest.typescript-language-server
nodePackages_latest.vscode-langservers-extracted
typescript
jsonnet-language-server
jsonnet
]);
programs.helix = {
package = inputs.helix.packages.${pkgs.stdenv.hostPlatform.system}.default;
package = inputs.helix.packages.${pkgs.system}.default;
enable = true;
defaultEditor = true;
settings = {
@ -117,7 +121,7 @@ in
language-server.csharp = {
command = "csharp-language-server";
};
language = lib.flatten [
language = flatten [
(map
(x: {
name = x;