git: add some neat config options
This commit is contained in:
parent
19551d4e5b
commit
9a1f7cfe75
2 changed files with 96 additions and 11 deletions
|
|
@ -49,22 +49,24 @@ topLevel: {
|
|||
};
|
||||
core = {
|
||||
fsmonitor = true;
|
||||
editor = "hx";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
pull = {
|
||||
rebase = true;
|
||||
};
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
commit.verbose = true;
|
||||
init.defaultBranch = "main";
|
||||
pull.rebase = true;
|
||||
fetch = {
|
||||
prune = true;
|
||||
pruneTags = true;
|
||||
};
|
||||
push.autoSetupRemote = true;
|
||||
rebase = {
|
||||
autoStash = true;
|
||||
autoSquash = true;
|
||||
};
|
||||
safe = {
|
||||
directory = "/home/${username}/projects/config";
|
||||
};
|
||||
merge.conflictstyle = "zdiff3";
|
||||
safe.directory = "/home/${username}/projects/config";
|
||||
submodules.recurse = true;
|
||||
help.autocorrect = "prompt";
|
||||
maintenance = {
|
||||
repo = [
|
||||
"/home/${username}/projects/NixOS/nixpkgs"
|
||||
|
|
|
|||
83
modules/base/home/zed.nix
Normal file
83
modules/base/home/zed.nix
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
flake.modules = {
|
||||
homeManager.cholli =
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
|
||||
userSettings = {
|
||||
auto_install_extensions = {
|
||||
nix = true;
|
||||
catppuccin = true;
|
||||
catppuccin-icons = true;
|
||||
};
|
||||
|
||||
auto_update = false;
|
||||
|
||||
base_keymap = "JetBrains";
|
||||
helix_mode = true;
|
||||
vim_mode = false;
|
||||
|
||||
ui_font_family = "FiraCode Nerd Font";
|
||||
ui_font_size = 16;
|
||||
buffer_font_family = "FiraCode Nerd Font";
|
||||
buffer_font_size = 16;
|
||||
|
||||
autosave = "on_focus_change";
|
||||
|
||||
theme = {
|
||||
mode = "system";
|
||||
light = "Catppuccin Latte";
|
||||
dark = "Catppuccin Macchiato";
|
||||
};
|
||||
|
||||
load_direnv = "shell_hook";
|
||||
terminal = {
|
||||
font_family = "FiraCode Nerd Font";
|
||||
font_size = 16;
|
||||
};
|
||||
|
||||
agent = {
|
||||
enabled = true;
|
||||
|
||||
default_model = {
|
||||
provider = "copilot_chat";
|
||||
model = "gpt-4o";
|
||||
};
|
||||
};
|
||||
|
||||
agent_servers = {
|
||||
github-copilot = {
|
||||
type = "registry";
|
||||
};
|
||||
};
|
||||
|
||||
edit_predictions.mode = "eager";
|
||||
features = {
|
||||
edit_prediction_provider = "copilot";
|
||||
};
|
||||
|
||||
inlay_hints.enabled = true;
|
||||
lsp = {
|
||||
nixd = {
|
||||
binary = {
|
||||
path = lib.getExe pkgs.nixd;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
userKeymaps = [
|
||||
{
|
||||
context = "Workspace";
|
||||
bindings = {
|
||||
"shift shift" = "file_finder::Toggle";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue