Compare commits

...

4 commits

Author SHA1 Message Date
♥ Minnie ♥ e3dc3f07d6
Update whichkey 2024-08-07 14:29:15 +08:00
♥ Minnie ♥ c651fe77bf
Update lazygit 2024-08-07 14:28:02 +08:00
♥ Minnie ♥ 2b537f6c0d
Update telescope 2024-08-07 14:27:36 +08:00
♥ Minnie ♥ fdf8d742ce
Install fugitive 2024-08-07 14:24:44 +08:00
5 changed files with 148 additions and 12 deletions

View file

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

View file

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

View file

@ -8,10 +8,25 @@
keymaps = [
{
mode = "n";
key = "<leader>lg";
key = "<leader>gg";
action = "<cmd>LazyGit<cr>";
options.desc = "LazyGit";
}
];
options = {
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,40 +19,77 @@
# Configure our telescope keymaps.
keymaps = {
# File Pickers
"<leader>ff" = {
action = "find_files";
options = {
desc = "Find project files";
};
};
"<leader>fb" = {
action = "buffers";
options = {
desc = "Find open buffers";
};
};
"<leader>/" = {
action = "live_grep";
options = {
desc = "Grep (root dir)";
};
};
# Vim Pickers
"<leader>fb" = {
action = "buffers";
options = {
desc = "Find open buffers";
};
};
"<leader>:" = {
action = "command_history";
options = {
desc = "Command History";
};
};
"<leader>p" = {
action = "neoclip";
options.desc = "Persistent Clipboard";
};
"<leader>sc" = {
action = "commands";
options = {
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" = {
action = "software-licenses find";
options = {

View file

@ -4,5 +4,80 @@
plugins.which-key = {
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";
};
}
];
}