Skip to content

Commit

Permalink
Swap back to fugitive
Browse files Browse the repository at this point in the history
This reverts commit 4c877f2.
  • Loading branch information
simonrw committed Apr 29, 2024
1 parent 4c877f2 commit 2f5f7ed
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
32 changes: 29 additions & 3 deletions home/nixvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ in {
./trouble.nix
./zen-mode.nix
./diffview.nix
./neogit.nix
];
config.programs.nixvim = {
enable = true;
Expand Down Expand Up @@ -108,6 +107,12 @@ in {
last-position.clear = true;
};
autoCmd = [
# support closing fugitive window with 'q'
{
event = ["FileType"];
pattern = ["fugitive"];
command = "nmap <buffer> q gq";
}
# auto wrap markdown files
{
event = ["FileType"];
Expand Down Expand Up @@ -215,10 +220,30 @@ in {
key = "<leader>A";
action = "<cmd>Lspsaga outline<cr>";
})
# neogit
# fugitive
(keymap {
key = "<leader>gc";
action = ":Git commit -v<cr>";
})
(keymap {
key = "<leader>gd";
action = ":Gvdiff<cr>";
})
(keymap {
key = "<leader>gw";
action = ":Gwrite<cr>";
})
(keymap {
key = "<leader>gr";
action = ":Gread<cr>";
})
(keymap {
key = "gs";
action = ":Neogit<cr>";
action = ":Git<cr>";
})
(keymap {
key = "<leader>ga";
action = ":Git commit -v --amend<cr>";
})
# vim-test
(keymap {
Expand Down Expand Up @@ -253,6 +278,7 @@ in {
plugins = {
surround.enable = true;
commentary.enable = true;
fugitive.enable = true;
treesitter = {
enable = true;
disabledLanguages = [
Expand Down
5 changes: 0 additions & 5 deletions home/nixvim/neogit.nix

This file was deleted.

0 comments on commit 2f5f7ed

Please sign in to comment.