split waybar into multiple files

This commit is contained in:
Lucy Hochkamp 2025-10-06 21:29:04 +02:00
parent 53c7532351
commit 7cff7f09c3
No known key found for this signature in database
29 changed files with 953 additions and 617 deletions

View file

@ -1,4 +1,10 @@
{ pkgs, config, lib, inputs, ... }:
{
pkgs,
config,
lib,
inputs,
...
}:
with lib;
let
cfg = config.xyno.helix;
@ -7,26 +13,30 @@ in
options.xyno.helix.enable = mkOption { default = false; };
options.xyno.helix.withLargeLSPs = mkOption { default = false; };
config = mkIf cfg.enable {
home.packages = with pkgs; [
nixpkgs-fmt
# omnisharp-roslyn
## ts
# nodePackages_latest.prettier
dprint
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
]);
home.packages =
with pkgs;
[
nixpkgs-fmt
# omnisharp-roslyn
## ts
# nodePackages_latest.prettier
dprint
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
lazygit
]);
programs.helix = {
package = inputs.helix.packages.${pkgs.system}.default;
enable = true;
@ -94,6 +104,13 @@ in
keys = {
normal = {
space."=" = ":fmt";
"C-g" =
":sh tmux popup -d \"#{pane_current_path}\" -xC -yC -w80%% -h80%% -E lazygit";
"C-t" = ":sh tmux split-window -v -l '35%%'";
"C-h" = ":sh tmux select-pane -t '{left-of}'";
"C-l" = ":sh tmux select-pane -t '{right-of}'";
"C-j" = ":sh tmux select-pane -t '{down-of}'";
"C-k" = ":sh tmux select-pane -t '{up-of}'";
# smart tab++
tab = "move_parent_node_end";
@ -110,13 +127,15 @@ in
};
};
};
languages = {
language-server.pyright.config.python.analysis.typeCheckingMode = "basic";
language-server.ruff = {
command = "ruff-lsp";
config.settings.args = [ "--ignore" "E501" ];
config.settings.args = [
"--ignore"
"E501"
];
};
language-server.csharp = {
command = "csharp-language-server";
@ -125,22 +144,40 @@ in
(map
(x: {
name = x;
language-servers = [ "typescript-language-server" "eslint" ];
language-servers = [
"typescript-language-server"
"eslint"
];
#formatter = { command = "dprint"; args = [ "fmt" "--stdin" x ]; };
# formatter = { command = "prettier"; args = [ "--parser" "typescript" ]; };
}) [ "typescript" "javascript" "jsx" "tsx" ])
})
[
"typescript"
"javascript"
"jsx"
"tsx"
]
)
{
name = "nix";
formatter = { command = "nixpkgs-fmt"; };
formatter = {
command = "nixpkgs-fmt";
};
}
{
name = "python";
language-servers = [ "pyright" "ruff" ];
language-servers = [
"pyright"
"ruff"
];
}
{
name = "c-sharp";
language-servers = [ "csharp" ];
formatter = { command = "dotnet"; args = [ "csharpier" ]; };
formatter = {
command = "dotnet";
args = [ "csharpier" ];
};
}
];