mirror of
https://github.com/davegallant/nix-config
synced 2026-03-03 12:46:34 +00:00
Compare commits
3 Commits
a7bd9c8813
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 19ad1a7f59 | |||
| 3c4a637235 | |||
| 78d9960594 |
30
home.nix
30
home.nix
@@ -171,7 +171,7 @@ in
|
||||
v = "nvim";
|
||||
}
|
||||
// lib.optionalAttrs stdenv.isLinux {
|
||||
zed = "zeditor";
|
||||
zed = "env WAYLAND_DISPLAY='' zeditor"; # BUG: zed captures shift+v and g space on wayland
|
||||
};
|
||||
};
|
||||
|
||||
@@ -265,6 +265,19 @@ in
|
||||
cmp-path.enable = true;
|
||||
cmp-treesitter.enable = true;
|
||||
commentary.enable = true;
|
||||
codecompanion = {
|
||||
enable = true;
|
||||
settings = {
|
||||
interactions = {
|
||||
chat = {
|
||||
adapter = "copilot";
|
||||
};
|
||||
inline = {
|
||||
adapter = "copilot";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
diffview.enable = true;
|
||||
gitblame.enable = true;
|
||||
gitsigns.enable = true;
|
||||
@@ -409,7 +422,6 @@ in
|
||||
package = unstable.zed-editor;
|
||||
extensions = [
|
||||
"ansible"
|
||||
"color-highlight"
|
||||
"dockerfile"
|
||||
"html"
|
||||
"make"
|
||||
@@ -420,17 +432,14 @@ in
|
||||
];
|
||||
userSettings = {
|
||||
icon_theme = "Material Icon Theme";
|
||||
features = {
|
||||
edit_prediction_provider = "copilot";
|
||||
};
|
||||
vim_mode = true;
|
||||
vim = {
|
||||
use_system_clipboard = "on_yank";
|
||||
};
|
||||
autosave = "on_focus_change";
|
||||
format_on_save = "off";
|
||||
ui_font_size = lib.mkForce 18;
|
||||
buffer_font_size = lib.mkForce 16;
|
||||
ui_font_size = 18;
|
||||
buffer_font_size = 16;
|
||||
};
|
||||
userKeymaps = [
|
||||
{
|
||||
@@ -442,6 +451,13 @@ in
|
||||
"ctrl-z" = "editor::Undo";
|
||||
};
|
||||
}
|
||||
{
|
||||
context = "vim_mode == normal";
|
||||
bindings = {
|
||||
"g space" = "editor::OpenExcerpts";
|
||||
"shift-v" = "vim::ToggleVisualLine";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user