steal from MaxMur

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-03 17:57:49 +03:00
parent f31ca59f58
commit 211e509628
11 changed files with 94 additions and 84 deletions

View File

@ -3,8 +3,8 @@
config,
lib,
...
}:
with lib; let
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.console.joshuto;
in {
options = {
@ -204,7 +204,7 @@ in {
# '';
# };
# in
lib.mkIf cfg.enable {
mkIf cfg.enable {
home.packages = [pkgs.file];
programs.joshuto = {
enable = true;
@ -223,7 +223,7 @@ in {
column_ratio = [1 5 2];
};
preview = {
# preview_script = lib.getExe pkgs.pistol;
# preview_script = getExe pkgs.pistol;
use_xdg_thumbs = true;
xdg_thumb_size = "xxlarge";
};

View File

@ -3,8 +3,8 @@
config,
lib,
...
}:
with lib; let
}: let
inherit (lib) mkIf mkEnableOption getExe;
cfg = config.editor.helix;
in {
options = {
@ -61,7 +61,7 @@ in {
};
};
languages = {
language-server = with lib; {
language-server = {
clangd.command = "${pkgs.clang-tools}/bin/clangd";
markdown-oxide.command = getExe pkgs.markdown-oxide;
# nil.command = getExe pkgs.nil;
@ -74,7 +74,7 @@ in {
{
name = "nix";
auto-format = true;
formatter.command = lib.getExe pkgs.alejandra;
formatter.command = getExe pkgs.alejandra;
language-servers = ["nixd"];
}
# {
@ -86,7 +86,7 @@ in {
{
name = "typst";
auto-format = true;
formatter.command = lib.getExe pkgs.typstyle;
formatter.command = getExe pkgs.typstyle;
language-servers = ["tinymist"];
}
{
@ -109,7 +109,7 @@ in {
# name = "rust";
# auto-format = true;
# language-servers = ["rust-analyzer"];
# formatter.command = lib.getExe pkgs.rustfmt;
# formatter.command = getExe pkgs.rustfmt;
# }
];
};

View File

@ -1,15 +1,16 @@
{
pkgs,
# pkgs-51b85c,
lib,
config,
lib,
pkgs,
...
}: {
}: let
inherit (lib) mkIf mkEnableOption;
in {
options = {
editor.neovim.enable =
lib.mkEnableOption "enable neovim text editor";
mkEnableOption "enable neovim text editor";
};
config = lib.mkIf config.editors.neovim.enable {
config = mkIf config.editors.neovim.enable {
# stylix.targets.nixvim.enable = true;
home.packages = with pkgs; [neovide];
programs.nixvim = {

View File

@ -3,8 +3,8 @@
pkgs,
lib,
...
}:
with lib; let
}: let
inherit (lib) mkIf mkEnableOption mkForce getExe;
cfg = config.editor.zed;
in {
options = {
@ -22,8 +22,8 @@ in {
];
userSettings = {
vim_mode = true;
ui_font_size = lib.mkForce 16;
buffer_font_size = lib.mkForce 16;
ui_font_size = mkForce 16;
buffer_font_size = mkForce 16;
features = {inline_completion_provider = "none";};
auto_update = false;
languages = {
@ -33,13 +33,13 @@ in {
"nixd"
];
formatter = {
external.command = lib.getExe pkgs.alejandra;
external.command = getExe pkgs.alejandra;
};
};
"Rust" = {
formatter = {
external = {
command = lib.getExe pkgs.rustfmt;
command = getExe pkgs.rustfmt;
arguments = ["--edition" "2021"];
};
};
@ -49,7 +49,7 @@ in {
format_on_save = "on";
formatter = {
external = {
command = lib.getExe pkgs.typstyle;
command = getExe pkgs.typstyle;
arguments = ["-i" "{buffer_path}"];
};
};
@ -76,39 +76,39 @@ in {
rust-analyzer = {
binary = {
arguments = [];
path = lib.getExe pkgs.rust-analyzer;
path = getExe pkgs.rust-analyzer;
};
};
ruff = {
binary = {
arguments = [];
path = lib.getExe pkgs.ruff;
path = getExe pkgs.ruff;
};
};
nixd = {
binary = {
arguments = [];
path = lib.getExe pkgs.nixd;
path = getExe pkgs.nixd;
};
initialization_options.formatting.command = [(lib.getExe pkgs.alejandra)];
initialization_options.formatting.command = [(getExe pkgs.alejandra)];
};
nil = {
binary = {
arguments = [];
path = lib.getExe pkgs.nil;
path = getExe pkgs.nil;
};
initialization_options.formatting.command = [(lib.getExe pkgs.alejandra)];
initialization_options.formatting.command = [(getExe pkgs.alejandra)];
};
texlab = {
binary = {
arguments = [];
path = lib.getExe pkgs.texlab;
path = getExe pkgs.texlab;
};
};
tinymist = {
binary = {
arguments = [];
path = lib.getExe pkgs.tinymist;
path = getExe pkgs.tinymist;
};
};
};