added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
This commit is contained in:
parent
322788aa3a
commit
6f0e167087
30 changed files with 539 additions and 525 deletions
|
@ -1,25 +1,28 @@
|
|||
{
|
||||
configs,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.nixvim = {
|
||||
plugins.gitsigns = {
|
||||
enable = true;
|
||||
config = lib.mkIf config.user.nvim.enable {
|
||||
programs.nixvim = {
|
||||
plugins.gitsigns = {
|
||||
enable = true;
|
||||
};
|
||||
plugins.which-key.registrations = {
|
||||
"<leader>g" = "+git";
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
action = ":Gitsigns toggle_current_line_blame<CR>";
|
||||
key = "<leader>gb";
|
||||
mode = "n";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "toggle git blame";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
plugins.which-key.registrations = {
|
||||
"<leader>g" = "+git";
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
action = ":Gitsigns toggle_current_line_blame<CR>";
|
||||
key = "<leader>gb";
|
||||
mode = "n";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "toggle git blame";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue