{ ... }: { plugins.copilot-chat = { enable = true; # Copilot Chat settings. settings = { # Model to use for Copilot Chat. model = "gpt-4.1"; # Use all buffers for context. context = "buffers"; # Use yanked text for selection. selection = "unnamed"; # Don't highlight the selection. highlight_selection = false; # Window settings for Copilot Chat. window = { # Width of the chat window. width = 0.3; }; }; }; # Keymaps for Copilot Chat. keymaps = [ { mode = ["n" "v"]; key = "ct"; action = "CopilotChatToggle"; options = { silent = true; desc = "Toggle chat"; }; } { mode = ["n" "v"]; key = "cp"; action = "CopilotChatPrompts"; options = { silent = true; desc = "Select prompt"; }; } { mode = ["n"]; key = "cm"; action = "CopilotChatModels"; options = { silent = true; desc = "Select model"; }; } { mode = ["n"]; key = "ca"; action = "CopilotChatAgents"; options = { silent = true; desc = "Select agent"; }; } ]; }