@@ -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/";}
|
||||||
|
|||||||
@@ -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
5
modules/home/jjui.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.jjui = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
20
modules/home/jujutsu.nix
Normal file
20
modules/home/jujutsu.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.diffview = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
7
modules/home/neovim/plugins/hunk.nix
Normal file
7
modules/home/neovim/plugins/hunk.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins = {
|
||||||
|
hunk = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user