diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix index dde86d2..c89ee45 100644 --- a/modules/darwin/default.nix +++ b/modules/darwin/default.nix @@ -63,7 +63,7 @@ username = user; entries = [ {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/Mail.app/";} {path = "/System/Applications/Notes.app/";} diff --git a/modules/home/default.nix b/modules/home/default.nix index ded3f39..17b98b6 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -12,6 +12,8 @@ ./fish.nix ./fzf.nix ./git.nix + ./jjui.nix + ./jujutsu.nix ./lazygit.nix ./mise.nix ./neovim diff --git a/modules/home/jjui.nix b/modules/home/jjui.nix new file mode 100644 index 0000000..056e1fc --- /dev/null +++ b/modules/home/jjui.nix @@ -0,0 +1,5 @@ +{ + programs.jjui = { + enable = true; + }; +} diff --git a/modules/home/jujutsu.nix b/modules/home/jujutsu.nix new file mode 100644 index 0000000..11af5b9 --- /dev/null +++ b/modules/home/jujutsu.nix @@ -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"]; + }; + }; + }; +} diff --git a/modules/home/neovim/default.nix b/modules/home/neovim/default.nix index 573c511..3750f89 100644 --- a/modules/home/neovim/default.nix +++ b/modules/home/neovim/default.nix @@ -6,10 +6,9 @@ ./plugins/blink-cmp.nix ./plugins/conform.nix ./plugins/copilot.nix - ./plugins/diffview.nix ./plugins/grug-far.nix ./plugins/harpoon.nix - + ./plugins/hunk.nix ./plugins/lsp.nix ./plugins/mini.nix ./plugins/oil.nix diff --git a/modules/home/neovim/mappings.nix b/modules/home/neovim/mappings.nix index 1878b3b..23bf9b5 100644 --- a/modules/home/neovim/mappings.nix +++ b/modules/home/neovim/mappings.nix @@ -128,27 +128,10 @@ key = "gg"; action.__raw = '' function() - local Terminal = require('toggleterm.terminal').Terminal - 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", "close", {noremap = true, silent = true}) - end, - on_close = function(term) - vim.cmd("startinsert!") - end, - }) - lazygit:toggle() + require('toggleterm.terminal').Terminal:new({ cmd = 'jjui', direction = 'float' }):toggle() end ''; - options.desc = "Lazygit (toggleterm)"; + options.desc = "jjui"; } # l - lsp/formatter { diff --git a/modules/home/neovim/plugins/diffview.nix b/modules/home/neovim/plugins/diffview.nix deleted file mode 100644 index 7a2ab74..0000000 --- a/modules/home/neovim/plugins/diffview.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - programs.nixvim.plugins.diffview = { - enable = true; - }; -} diff --git a/modules/home/neovim/plugins/hunk.nix b/modules/home/neovim/plugins/hunk.nix new file mode 100644 index 0000000..c8727f9 --- /dev/null +++ b/modules/home/neovim/plugins/hunk.nix @@ -0,0 +1,7 @@ +{ + programs.nixvim.plugins = { + hunk = { + enable = true; + }; + }; +} diff --git a/modules/home/neovim/plugins/toggleterm.nix b/modules/home/neovim/plugins/toggleterm.nix index 4c840c5..7ccd20a 100644 --- a/modules/home/neovim/plugins/toggleterm.nix +++ b/modules/home/neovim/plugins/toggleterm.nix @@ -17,4 +17,4 @@ shell = "fish"; }; }; -} \ No newline at end of file +}