Compare commits

...

3 Commits

Author SHA1 Message Date
19ad1a7f59 Add codecompanion.nvim 2026-03-01 22:26:40 -05:00
3c4a637235 force X11 with zeditor to avoid shift+v capture 2026-03-01 21:32:49 -05:00
78d9960594 Cleanup zed-editor config 2026-03-01 20:59:35 -05:00

View File

@@ -171,7 +171,7 @@ in
v = "nvim"; v = "nvim";
} }
// lib.optionalAttrs stdenv.isLinux { // 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-path.enable = true;
cmp-treesitter.enable = true; cmp-treesitter.enable = true;
commentary.enable = true; commentary.enable = true;
codecompanion = {
enable = true;
settings = {
interactions = {
chat = {
adapter = "copilot";
};
inline = {
adapter = "copilot";
};
};
};
};
diffview.enable = true; diffview.enable = true;
gitblame.enable = true; gitblame.enable = true;
gitsigns.enable = true; gitsigns.enable = true;
@@ -409,7 +422,6 @@ in
package = unstable.zed-editor; package = unstable.zed-editor;
extensions = [ extensions = [
"ansible" "ansible"
"color-highlight"
"dockerfile" "dockerfile"
"html" "html"
"make" "make"
@@ -420,17 +432,14 @@ in
]; ];
userSettings = { userSettings = {
icon_theme = "Material Icon Theme"; icon_theme = "Material Icon Theme";
features = {
edit_prediction_provider = "copilot";
};
vim_mode = true; vim_mode = true;
vim = { vim = {
use_system_clipboard = "on_yank"; use_system_clipboard = "on_yank";
}; };
autosave = "on_focus_change"; autosave = "on_focus_change";
format_on_save = "off"; format_on_save = "off";
ui_font_size = lib.mkForce 18; ui_font_size = 18;
buffer_font_size = lib.mkForce 16; buffer_font_size = 16;
}; };
userKeymaps = [ userKeymaps = [
{ {
@@ -442,6 +451,13 @@ in
"ctrl-z" = "editor::Undo"; "ctrl-z" = "editor::Undo";
}; };
} }
{
context = "vim_mode == normal";
bindings = {
"g space" = "editor::OpenExcerpts";
"shift-v" = "vim::ToggleVisualLine";
};
}
]; ];
}; };