Save detached HEAD changes
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
in {
|
||||
imports = [
|
||||
./ghostty.nix
|
||||
./zed.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
||||
58
modules/darwin/home/zed.nix
Normal file
58
modules/darwin/home/zed.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{pkgs, ...}:
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extraPackages = [
|
||||
pkgs.vtsls
|
||||
];
|
||||
userSettings = {
|
||||
theme = {
|
||||
mode = "system";
|
||||
light = "One Light";
|
||||
dark = "Catppuccin Mocha";
|
||||
};
|
||||
buffer_font_family = "Iosevka Nerd Font";
|
||||
buffer_font_size = 17;
|
||||
ui_font_family = "Iosevka Nerd Font";
|
||||
ui_font_size = 16;
|
||||
vim_mode = true;
|
||||
ssh_connections = [
|
||||
{
|
||||
host = "tahani";
|
||||
projects = [
|
||||
{
|
||||
paths = [
|
||||
"/home/cschmatzler/Projects/Personal/shnosh"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
format_on_save = "off";
|
||||
buffer_font_features = {
|
||||
calt = 0;
|
||||
};
|
||||
inlay_hints = {
|
||||
enabled = true;
|
||||
show_value_hints = true;
|
||||
show_type_hints = true;
|
||||
show_parameter_hints = true;
|
||||
show_other_hints = true;
|
||||
show_background = false;
|
||||
edit_debounce_ms = 700;
|
||||
scroll_debounce_ms = 50;
|
||||
toggle_on_modifiers_press = {
|
||||
control = false;
|
||||
alt = false;
|
||||
shift = false;
|
||||
platform = false;
|
||||
function = false;
|
||||
};
|
||||
};
|
||||
telemetry = {
|
||||
diagnostics = false;
|
||||
metrics = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -12,8 +12,8 @@
|
||||
./fish.nix
|
||||
./fzf.nix
|
||||
./git.nix
|
||||
./jjui.nix
|
||||
./jujutsu.nix
|
||||
|
||||
|
||||
./mise.nix
|
||||
./neovim
|
||||
./opencode.nix
|
||||
|
||||
@@ -5,6 +5,7 @@ in {
|
||||
enable = true;
|
||||
ignores = ["*.swp"];
|
||||
userName = name;
|
||||
userEmail = "christoph@schmatzler.com";
|
||||
lfs = {
|
||||
enable = true;
|
||||
};
|
||||
@@ -13,10 +14,19 @@ in {
|
||||
core = {
|
||||
editor = "vim";
|
||||
autocrlf = "input";
|
||||
pager = "delta";
|
||||
};
|
||||
# commit.gpgsign = true;
|
||||
pull.rebase = true;
|
||||
rebase.autoStash = true;
|
||||
interactive.diffFilter = "delta --color-only";
|
||||
delta = {
|
||||
navigate = true;
|
||||
line-numbers = true;
|
||||
syntax-theme = "GitHub";
|
||||
side-by-side = true;
|
||||
pager = "less -FRX";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
programs.jjui = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
programs.jujutsu = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "Christoph Schmatzler";
|
||||
email = "christoph@schmatzler.com";
|
||||
};
|
||||
diff = {
|
||||
tool = "delta";
|
||||
};
|
||||
ui = {
|
||||
default-command = "status";
|
||||
diff-formatter = ":git";
|
||||
pager = ["delta" "--pager" "less -FRX"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -94,16 +94,7 @@
|
||||
options.desc = "Symbols (LSP, buffer)";
|
||||
}
|
||||
# g - git
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>gg";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require('toggleterm.terminal').Terminal:new({ cmd = 'jjui', direction = 'float' }):toggle()
|
||||
end
|
||||
'';
|
||||
options.desc = "jjui";
|
||||
}
|
||||
|
||||
# l - lsp/formatter
|
||||
{
|
||||
mode = "n";
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
settings = {
|
||||
add_newline = true;
|
||||
command_timeout = 200;
|
||||
format = "[$directory$\{custom.jj}]($style)$character";
|
||||
format = "[$directory$git_commit$git_branch$git_status]($style)$character";
|
||||
character = {
|
||||
error_symbol = "[✗ ](bold #e64553)";
|
||||
success_symbol = "[❯](bold #40a02b)[❯](bold #df8e1d)[❯](bold #dc8a78)";
|
||||
@@ -16,29 +16,18 @@
|
||||
repo_root_style = "bold cyan";
|
||||
repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ";
|
||||
};
|
||||
custom.jj = {
|
||||
command = ''
|
||||
jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '
|
||||
separate(" ",
|
||||
change_id.shortest(4),
|
||||
bookmarks,
|
||||
"|",
|
||||
concat(
|
||||
if(conflict, "💥"),
|
||||
if(divergent, "🚧"),
|
||||
if(hidden, "👻"),
|
||||
if(immutable, "🔒"),
|
||||
),
|
||||
raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"),
|
||||
raw_escape_sequence("\x1b[1;32m") ++ coalesce(
|
||||
truncate_end(29, description.first_line(), "…"),
|
||||
"(no description set)",
|
||||
) ++ raw_escape_sequence("\x1b[0m"),
|
||||
)
|
||||
'
|
||||
'';
|
||||
when = "jj --ignore-working-copy root";
|
||||
symbol = "🥋";
|
||||
git_commit = {
|
||||
commit_hash_length = 4;
|
||||
only_detached = false;
|
||||
tag_disabled = true;
|
||||
format = "[$hash]($style) ";
|
||||
};
|
||||
git_branch = {
|
||||
format = "[$branch]($style) ";
|
||||
symbol = "";
|
||||
};
|
||||
git_status = {
|
||||
format = "| [$all_status$ahead_behind]($style) ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./zellij.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
packages = pkgs.callPackage ../packages.nix {};
|
||||
};
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
programs.zellij = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
}
|
||||
@@ -2,9 +2,9 @@
|
||||
with pkgs; [
|
||||
(callPackage ./bin/open-project.nix {})
|
||||
age
|
||||
amp-cli
|
||||
alejandra
|
||||
ast-grep
|
||||
codex
|
||||
delta
|
||||
devenv
|
||||
dig
|
||||
@@ -21,6 +21,7 @@ with pkgs; [
|
||||
hyperfine
|
||||
jq
|
||||
killall
|
||||
|
||||
lsof
|
||||
nurl
|
||||
openssh
|
||||
|
||||
Reference in New Issue
Block a user