feat(copilot-chat): enhance settings and keymaps
Add detailed Copilot Chat settings including model selection, context source, selection register, and highlight options. Expand keymaps to support both normal and visual modes for toggling chat and prompts. Improves usability and customization of Copilot Chat in Neovim.
This commit is contained in:
parent
b13e372fd6
commit
1776ff3828
1 changed files with 8 additions and 2 deletions
|
@ -6,6 +6,12 @@
|
||||||
settings = {
|
settings = {
|
||||||
# Model to use for Copilot Chat.
|
# Model to use for Copilot Chat.
|
||||||
model = "gpt-4.1";
|
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 settings for Copilot Chat.
|
||||||
window = {
|
window = {
|
||||||
# Width of the chat window.
|
# Width of the chat window.
|
||||||
|
@ -17,7 +23,7 @@
|
||||||
# Keymaps for Copilot Chat.
|
# Keymaps for Copilot Chat.
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
mode = ["n"];
|
mode = ["n" "v"];
|
||||||
key = "<leader>ct";
|
key = "<leader>ct";
|
||||||
action = "<cmd>CopilotChatToggle<cr>";
|
action = "<cmd>CopilotChatToggle<cr>";
|
||||||
options = {
|
options = {
|
||||||
|
@ -27,7 +33,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = ["n"];
|
mode = ["n" "v"];
|
||||||
key = "<leader>cp";
|
key = "<leader>cp";
|
||||||
action = "<cmd>CopilotChatPrompts<cr>";
|
action = "<cmd>CopilotChatPrompts<cr>";
|
||||||
options = {
|
options = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue