nixvim!
This commit is contained in:
parent
1ae2d7cc6a
commit
6198767e5b
47 changed files with 2430 additions and 108 deletions
8
modules/editors/nixvim/plug/git/gitlinker.nix
Normal file
8
modules/editors/nixvim/plug/git/gitlinker.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
programs.nixvim.plugins.gitlinker = {
|
||||
enable = true;
|
||||
callbacks = {
|
||||
"gihub.com" = "get_github_type_url";
|
||||
};
|
||||
};
|
||||
}
|
76
modules/editors/nixvim/plug/git/gitsigns.nix
Normal file
76
modules/editors/nixvim/plug/git/gitsigns.nix
Normal file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
programs.nixvim.plugins.gitsigns = {
|
||||
enable = true;
|
||||
settings = {
|
||||
trouble = true;
|
||||
current_line_blame = true;
|
||||
signs = {
|
||||
add = {
|
||||
text = "│";
|
||||
};
|
||||
change = {
|
||||
text = "│";
|
||||
};
|
||||
delete = {
|
||||
text = "_";
|
||||
};
|
||||
topdelete = {
|
||||
text = "‾";
|
||||
};
|
||||
changedelete = {
|
||||
text = "~";
|
||||
};
|
||||
untracked = {
|
||||
text = "│";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n" "v"];
|
||||
key = "<leader>gh";
|
||||
action = "gitsigns";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "+hunks";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ghb";
|
||||
action = ":Gitsigns blame_line<CR>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Blame line";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ghd";
|
||||
action = ":Gitsigns diffthis<CR>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Diff This";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ghR";
|
||||
action = ":Gitsigns reset_buffer<CR>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Reset Buffer";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ghS";
|
||||
action = ":Gitsigns stage_buffer<CR>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Stage Buffer";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
22
modules/editors/nixvim/plug/git/lazygit.nix
Normal file
22
modules/editors/nixvim/plug/git/lazygit.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
lazygit-nvim
|
||||
];
|
||||
|
||||
extraConfigLua = ''
|
||||
require("telescope").load_extension("lazygit")
|
||||
'';
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>gg";
|
||||
action = "<cmd>LazyGit<CR>";
|
||||
options = {
|
||||
desc = "LazyGit (root dir)";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
6
modules/editors/nixvim/plug/git/worktree.nix
Normal file
6
modules/editors/nixvim/plug/git/worktree.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
programs.nixvim.plugins.git-worktree = {
|
||||
enable = true;
|
||||
enableTelescope = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue