Compare commits

..

No commits in common. "e3dc3f07d69bcb0c9df5875aefd7dbf3877be794" and "77186caecafc5428852e4c8d6c8433c9285ac7ca" have entirely different histories.

5 changed files with 12 additions and 148 deletions

View file

@ -28,7 +28,6 @@
./plugins/lsp/lsp.nix ./plugins/lsp/lsp.nix
# Git # Git
./plugins/git/fugitive.nix
./plugins/git/gitsigns.nix ./plugins/git/gitsigns.nix
./plugins/git/lazygit.nix ./plugins/git/lazygit.nix

View file

@ -1,8 +0,0 @@
{ ... }:
{
plugins.fugitive = {
enable = true;
};
}

View file

@ -8,25 +8,10 @@
keymaps = [ keymaps = [
{ {
mode = "n"; mode = "n";
key = "<leader>gg"; key = "<leader>lg";
action = "<cmd>LazyGit<cr>"; action = "<cmd>LazyGit<cr>";
options = { options.desc = "LazyGit";
desc = "Open LazyGit";
};
}
{
mode = "n";
key = "<leader>lr";
action = "<cmd>lua require(\"telescope\").extensions.lazygit.lazygit()<cr>";
options = {
desc = "List repositories";
};
} }
]; ];
extraConfigLua = ''
require("telescope").load_extension("lazygit")
'';
} }

View file

@ -19,77 +19,40 @@
# Configure our telescope keymaps. # Configure our telescope keymaps.
keymaps = { keymaps = {
# File Pickers
"<leader>ff" = { "<leader>ff" = {
action = "find_files"; action = "find_files";
options = { options = {
desc = "Find project files"; desc = "Find project files";
}; };
}; };
"<leader>fb" = {
action = "buffers";
options = {
desc = "Find open buffers";
};
};
"<leader>/" = { "<leader>/" = {
action = "live_grep"; action = "live_grep";
options = { options = {
desc = "Grep (root dir)"; desc = "Grep (root dir)";
}; };
}; };
# Vim Pickers
"<leader>fb" = {
action = "buffers";
options = {
desc = "Find open buffers";
};
};
"<leader>:" = { "<leader>:" = {
action = "command_history"; action = "command_history";
options = { options = {
desc = "Command History"; desc = "Command History";
}; };
}; };
"<leader>p" = {
action = "neoclip";
options.desc = "Persistent Clipboard";
};
"<leader>sc" = { "<leader>sc" = {
action = "commands"; action = "commands";
options = { options = {
desc = "Search Commands"; desc = "Search Commands";
}; };
}; };
# Git Pickers
"<leader>lc" = {
action = "git_bcommits";
options = {
desc = "List buffers commits";
};
};
"<leader>lC" = {
action = "git_commits";
options = {
desc = "List git commits";
};
};
"<leader>lb" = {
action = "git_branches";
options = {
desc = "List git branches";
};
};
"<leader>ld" = {
action = "git_status";
options = {
desc = "List git diff";
};
};
"<leader>ls" = {
action = "git_stash";
options = {
desc = "List git stash";
};
};
# Extensions
"<leader>p" = {
action = "neoclip";
options.desc = "Persistent Clipboard";
};
"<leader>sl" = { "<leader>sl" = {
action = "software-licenses find"; action = "software-licenses find";
options = { options = {

View file

@ -4,80 +4,5 @@
plugins.which-key = { plugins.which-key = {
enable = true; enable = true;
}; };
# Prefixes, No operation.
keymaps = [
{
mode = "n";
key = "<leader>f";
action = "<Nop>";
options = {
desc = "+find/files";
};
}
{
mode = "n";
key = "<leader>s";
action = "<Nop>";
options = {
desc = "+search";
};
}
{
mode = "n";
key = "<leader>h";
action = "<Nop>";
options = {
desc = "+hunks";
};
}
{
mode = "n";
key = "<leader>t";
action = "<Nop>";
options = {
desc = "+toggle";
};
}
{
mode = "n";
key = "<leader>b";
action = "<Nop>";
options = {
desc = "+buffer";
};
}
{
mode = [ "n" "v" ];
key = "<leader>c";
action = "<Nop>";
options = {
desc = "+comment";
};
}
{
mode = "n";
key = "<leader>g";
action = "<Nop>";
options = {
desc = "+git";
};
}
{
mode = "n";
key = "<leader>l";
action = "<Nop>";
options = {
desc = "+list";
};
}
];
} }