@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user