nix-dotfiles/home/programs/zed/default.nix

84 lines
1.6 KiB
Nix
Raw Normal View History

2024-12-08 13:43:12 +01:00
{ pkgs, ... }:
2024-08-12 17:37:18 +02:00
{
2024-12-08 13:43:12 +01:00
programs.zed-editor = {
enable = true;
2024-12-09 16:17:41 +01:00
2024-12-08 13:43:12 +01:00
userSettings = {
load_direnv = "shell_hook";
2024-12-09 16:17:41 +01:00
base_keymap = "VSCode";
autosave = "off";
2024-12-08 13:43:12 +01:00
format_on_save = "off";
2024-12-09 16:17:41 +01:00
remove_trailing_whitespace_on_save = false;
tab_size = 2;
ui_font_family = "Noto Sans";
buffer_font_family = "Fira Code";
terminal.font_family = "Fira Code";
2024-08-12 17:37:18 +02:00
2024-12-08 13:43:12 +01:00
telemetry = {
diagnostics = false;
metrics = false;
};
2024-08-12 17:37:18 +02:00
2024-12-08 13:43:12 +01:00
vim_mode = true;
2024-08-12 17:37:18 +02:00
2024-12-08 13:43:12 +01:00
theme = {
2024-12-09 16:17:41 +01:00
mode = "dark";
light = "monokai Classic";
dark = "monokai Darker Classic";
};
file_scan_exclusions = [
"**/.git"
"**/.svn"
"**/.hg"
"**/.jj"
"**/CVS"
"**/.DS_Store"
"**/Thumbs.db"
"**/.classpath"
"**/.settings"
"**/.direnv"
];
git.inline_blame.enable = false;
indent_guides = {
enabled = true;
coloring = "indent_aware";
2024-12-08 13:43:12 +01:00
};
2024-08-12 17:37:18 +02:00
};
2024-12-09 16:17:41 +01:00
userKeymaps = [
{
context = "Workspace";
bindings = {
ctrl-j = "workspace::NewTerminal";
};
}
];
extensions = [
"basher"
"dart"
"dockerfile"
"html"
"nix"
"sql"
"toml"
];
2024-08-12 17:37:18 +02:00
};
xdg.configFile."zed/themes/monokai.json".source = let
package = pkgs.fetchFromGitHub {
owner = "billgo";
repo = "monokai";
rev = "061a86ff4845b11ac2f183c2e26c77b15cfae7d0";
hash = "sha256-mlEcgnLStYH1pV3p1iqNSvfVu4MpvpEOc+vxI+90MJs=";
};
in "${package}/themes/monokai.json";
}