up
This commit is contained in:
@@ -16,7 +16,6 @@ in {
|
|||||||
autocrlf = "input";
|
autocrlf = "input";
|
||||||
pager = "delta";
|
pager = "delta";
|
||||||
};
|
};
|
||||||
# commit.gpgsign = true;
|
|
||||||
pull.rebase = true;
|
pull.rebase = true;
|
||||||
rebase.autoStash = true;
|
rebase.autoStash = true;
|
||||||
interactive.diffFilter = "delta --color-only";
|
interactive.diffFilter = "delta --color-only";
|
||||||
|
|||||||
@@ -6,42 +6,42 @@
|
|||||||
commit.signOff = true;
|
commit.signOff = true;
|
||||||
paging = {
|
paging = {
|
||||||
colorArg = "always";
|
colorArg = "always";
|
||||||
pager = "DELTA_FEATURES=decorations delta --light --paging=never --line-numbers --hyperlinks --hyperlinks-file-link-format=\"lazygit-edit://{path}:{line}\"";
|
pager = "DELTA_FEATURES=decorations delta --dark --paging=never --line-numbers --hyperlinks --hyperlinks-file-link-format=\"lazygit-edit://{path}:{line}\"";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
authorColors = {
|
authorColors = {
|
||||||
"*" = "#7287fd";
|
"*" = "#b4befe";
|
||||||
};
|
};
|
||||||
theme = {
|
theme = {
|
||||||
activeBorderColor = [
|
activeBorderColor = [
|
||||||
"#8839ef"
|
"#cba6f7"
|
||||||
"bold"
|
"bold"
|
||||||
];
|
];
|
||||||
inactiveBorderColor = [
|
inactiveBorderColor = [
|
||||||
"#6c6f85"
|
"#a6adc8"
|
||||||
];
|
];
|
||||||
optionsTextColor = [
|
optionsTextColor = [
|
||||||
"#1e66f5"
|
"#89b4fa"
|
||||||
];
|
];
|
||||||
selectedLineBgColor = [
|
selectedLineBgColor = [
|
||||||
"#ccd0da"
|
"#313244"
|
||||||
];
|
];
|
||||||
cherryPickedCommitBgColor = [
|
cherryPickedCommitBgColor = [
|
||||||
"#bcc0cc"
|
"#45475a"
|
||||||
];
|
];
|
||||||
cherryPickedCommitFgColor = [
|
cherryPickedCommitFgColor = [
|
||||||
"#8839ef"
|
"#cba6f7"
|
||||||
];
|
];
|
||||||
defaultFgColor = [
|
defaultFgColor = [
|
||||||
"#4c4f69"
|
"#cdd6f4"
|
||||||
];
|
];
|
||||||
searchingActiveBorderColor = [
|
searchingActiveBorderColor = [
|
||||||
"#df8e1d"
|
"#f9e2af"
|
||||||
];
|
];
|
||||||
unstagedChangesColor = [
|
unstagedChangesColor = [
|
||||||
"#d20f39"
|
"#f38ba8"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,14 +4,15 @@
|
|||||||
./mappings.nix
|
./mappings.nix
|
||||||
./options.nix
|
./options.nix
|
||||||
./plugins/blink-cmp.nix
|
./plugins/blink-cmp.nix
|
||||||
./plugins/harpoon.nix
|
|
||||||
./plugins/conform.nix
|
./plugins/conform.nix
|
||||||
|
./plugins/diffview.nix
|
||||||
./plugins/grug-far.nix
|
./plugins/grug-far.nix
|
||||||
|
./plugins/harpoon.nix
|
||||||
./plugins/lsp.nix
|
./plugins/lsp.nix
|
||||||
./plugins/neogit.nix
|
|
||||||
./plugins/mini.nix
|
./plugins/mini.nix
|
||||||
./plugins/supermaven.nix
|
./plugins/neogit.nix
|
||||||
./plugins/oil.nix
|
./plugins/oil.nix
|
||||||
|
./plugins/supermaven.nix
|
||||||
./plugins/toggleterm.nix
|
./plugins/toggleterm.nix
|
||||||
./plugins/treesitter.nix
|
./plugins/treesitter.nix
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -94,6 +94,11 @@
|
|||||||
options.desc = "Symbols (LSP, buffer)";
|
options.desc = "Symbols (LSP, buffer)";
|
||||||
}
|
}
|
||||||
# g - git
|
# g - git
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>gd";
|
||||||
|
action = ":DiffviewOpen<CR>";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>gg";
|
key = "<leader>gg";
|
||||||
@@ -104,7 +109,6 @@
|
|||||||
'';
|
'';
|
||||||
options.desc = "Neogit";
|
options.desc = "Neogit";
|
||||||
}
|
}
|
||||||
|
|
||||||
# l - lsp/formatter
|
# l - lsp/formatter
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
|
|||||||
5
modules/home/neovim/plugins/diffview.nix
Normal file
5
modules/home/neovim/plugins/diffview.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.diffview = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -148,5 +148,6 @@
|
|||||||
trailspace = {};
|
trailspace = {};
|
||||||
visits = {};
|
visits = {};
|
||||||
};
|
};
|
||||||
|
mockDevIcons = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,7 @@
|
|||||||
disable_signs = false;
|
disable_signs = false;
|
||||||
integrations = {
|
integrations = {
|
||||||
diffview = true;
|
diffview = true;
|
||||||
telescope = true;
|
|
||||||
};
|
};
|
||||||
use_telescope = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,6 @@
|
|||||||
programs.nixvim.plugins.oil = {
|
programs.nixvim.plugins.oil = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
columns = [
|
|
||||||
"icon"
|
|
||||||
];
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
"<C-r>" = "actions.refresh";
|
"<C-r>" = "actions.refresh";
|
||||||
"<leader>qq" = "actions.close";
|
"<leader>qq" = "actions.close";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
command_timeout = 200;
|
command_timeout = 200;
|
||||||
format = "$directory$git_commit$git_branch$git_status$git_state$git_metrics$character";
|
format = "$directory$git_branch$git_commit$git_status$git_state$git_metrics\n$character";
|
||||||
character = {
|
character = {
|
||||||
error_symbol = "[✗ ](bold #e64553)";
|
error_symbol = "[✗ ](bold #e64553)";
|
||||||
success_symbol = "[❯](bold #40a02b)[❯](bold #df8e1d)[❯](bold #dc8a78)";
|
success_symbol = "[❯](bold #40a02b)[❯](bold #df8e1d)[❯](bold #dc8a78)";
|
||||||
@@ -16,6 +16,12 @@
|
|||||||
repo_root_style = "bold cyan";
|
repo_root_style = "bold cyan";
|
||||||
repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ";
|
repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ";
|
||||||
};
|
};
|
||||||
|
git_branch = {
|
||||||
|
format = " @[$branch(:$remote_branch)]($style)";
|
||||||
|
symbol = "";
|
||||||
|
style = "bold #a6e3a1";
|
||||||
|
truncation_length = 28;
|
||||||
|
};
|
||||||
git_commit = {
|
git_commit = {
|
||||||
commit_hash_length = 4;
|
commit_hash_length = 4;
|
||||||
only_detached = false;
|
only_detached = false;
|
||||||
@@ -23,35 +29,30 @@
|
|||||||
format = " [$hash]($style)";
|
format = " [$hash]($style)";
|
||||||
style = "bold #89b4fa";
|
style = "bold #89b4fa";
|
||||||
};
|
};
|
||||||
git_branch = {
|
|
||||||
format = " [$symbol$branch(:$remote_branch)]($style)";
|
|
||||||
symbol = " ";
|
|
||||||
style = "bold #a6e3a1";
|
|
||||||
truncation_length = 28;
|
|
||||||
};
|
|
||||||
git_status = {
|
git_status = {
|
||||||
format = " [$ahead_behind$staged$modified$renamed$deleted$typechanged$untracked$stashed$conflicted]($style)";
|
format = " [$ahead_behind$staged$modified$renamed$deleted$typechanged$untracked$stashed$conflicted]($style)";
|
||||||
style = "bold #f9e2af";
|
style = "bold #f9e2af";
|
||||||
conflicted = "✖$count";
|
ahead = " a+$count";
|
||||||
ahead = "⇡$count";
|
behind = " b+$count";
|
||||||
behind = "⇣$count";
|
diverged = " div:$ahead_count/$behind_count";
|
||||||
diverged = "⇕$ahead_count/$behind_count";
|
staged = " s:$count";
|
||||||
staged = "+$count";
|
modified = " m:$count";
|
||||||
modified = "~$count";
|
renamed = " r:$count";
|
||||||
renamed = "»$count";
|
deleted = " d:$count";
|
||||||
deleted = "×$count";
|
typechanged = " t:$count";
|
||||||
untracked = "?$count";
|
untracked = " u:$count";
|
||||||
stashed = "⚑$count";
|
stashed = " st:$count";
|
||||||
typechanged = "≋$count";
|
conflicted = " x:$count";
|
||||||
};
|
};
|
||||||
git_state = {
|
git_state = {
|
||||||
format = " [$state($progress_current/$progress_total)]($style)";
|
format = " {$state($progress_current/$progress_total)}($style)";
|
||||||
style = "bold #f38ba8";
|
style = "bold #f38ba8";
|
||||||
};
|
};
|
||||||
git_metrics = {
|
git_metrics = {
|
||||||
disabled = false;
|
disabled = false;
|
||||||
format = " [+$added/-$deleted]($style)";
|
format = " [+$added]($added_style)/[-$deleted]($deleted_style)";
|
||||||
style = "bold #94e2d5";
|
added_style = "bold #40a02b";
|
||||||
|
deleted_style = "bold #d20f39";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
with pkgs; [
|
with pkgs; [
|
||||||
(callPackage ./bin/open-project.nix {})
|
(callPackage ./bin/open-project.nix {})
|
||||||
age
|
age
|
||||||
|
codex
|
||||||
amp-cli
|
amp-cli
|
||||||
alejandra
|
alejandra
|
||||||
ast-grep
|
ast-grep
|
||||||
@@ -21,7 +22,6 @@ with pkgs; [
|
|||||||
hyperfine
|
hyperfine
|
||||||
jq
|
jq
|
||||||
killall
|
killall
|
||||||
|
|
||||||
lsof
|
lsof
|
||||||
nurl
|
nurl
|
||||||
openssh
|
openssh
|
||||||
|
|||||||
Reference in New Issue
Block a user