Signed-off-by: Christoph Schmatzler <christoph@schmatzler.com>
This commit is contained in:
2025-11-12 07:38:24 +00:00
parent ae8259193b
commit 15d994fac2
9 changed files with 39 additions and 28 deletions

View File

@@ -63,7 +63,7 @@
username = user; username = user;
entries = [ entries = [
{path = "/Applications/Helium.app/";} {path = "/Applications/Helium.app/";}
{path = "/${pkgs.ghostty-bin}/Applications/Ghostty.app/";} {path = "${config.users.users.${user}.home}/Applications/Home Manager Apps/Ghostty.app/";}
{path = "/System/Applications/Calendar.app/";} {path = "/System/Applications/Calendar.app/";}
{path = "/System/Applications/Mail.app/";} {path = "/System/Applications/Mail.app/";}
{path = "/System/Applications/Notes.app/";} {path = "/System/Applications/Notes.app/";}

View File

@@ -12,6 +12,8 @@
./fish.nix ./fish.nix
./fzf.nix ./fzf.nix
./git.nix ./git.nix
./jjui.nix
./jujutsu.nix
./lazygit.nix ./lazygit.nix
./mise.nix ./mise.nix
./neovim ./neovim

5
modules/home/jjui.nix Normal file
View File

@@ -0,0 +1,5 @@
{
programs.jjui = {
enable = true;
};
}

20
modules/home/jujutsu.nix Normal file
View File

@@ -0,0 +1,20 @@
{
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"];
diff-editor = ["nvim" "-c" "DiffEditor $left $right $output"];
};
};
};
}

View File

@@ -6,10 +6,9 @@
./plugins/blink-cmp.nix ./plugins/blink-cmp.nix
./plugins/conform.nix ./plugins/conform.nix
./plugins/copilot.nix ./plugins/copilot.nix
./plugins/diffview.nix
./plugins/grug-far.nix ./plugins/grug-far.nix
./plugins/harpoon.nix ./plugins/harpoon.nix
./plugins/hunk.nix
./plugins/lsp.nix ./plugins/lsp.nix
./plugins/mini.nix ./plugins/mini.nix
./plugins/oil.nix ./plugins/oil.nix

View File

@@ -128,27 +128,10 @@
key = "<leader>gg"; key = "<leader>gg";
action.__raw = '' action.__raw = ''
function() function()
local Terminal = require('toggleterm.terminal').Terminal require('toggleterm.terminal').Terminal:new({ cmd = 'jjui', direction = 'float' }):toggle()
local lazygit = Terminal:new({
cmd = "lazygit",
dir = "git_dir",
direction = "float",
float_opts = {
border = "curved",
winblend = 3,
},
on_open = function(term)
vim.cmd("startinsert!")
vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "<cmd>close<CR>", {noremap = true, silent = true})
end,
on_close = function(term)
vim.cmd("startinsert!")
end,
})
lazygit:toggle()
end end
''; '';
options.desc = "Lazygit (toggleterm)"; options.desc = "jjui";
} }
# l - lsp/formatter # l - lsp/formatter
{ {

View File

@@ -1,5 +0,0 @@
{
programs.nixvim.plugins.diffview = {
enable = true;
};
}

View File

@@ -0,0 +1,7 @@
{
programs.nixvim.plugins = {
hunk = {
enable = true;
};
};
}

View File

@@ -17,4 +17,4 @@
shell = "fish"; shell = "fish";
}; };
}; };
} }