UpdateRemotePlugins
Not an Editor Command
#64
-
{
"CopilotC-Nvim/CopilotChat.nvim",
opts = {
show_help = "yes", -- Show help text for CopilotChatInPlace, default: yes
debug = false, -- Enable or disable debug mode, the log file will be in ~/.local/state/nvim/CopilotChat.nvim.log
disable_extra_info = "no", -- Disable extra information (e.g: system prompt) in the response.
language = "English", -- Copilot answer language settings when using default prompts. Default language is English.
-- proxy = "socks5://127.0.0.1:3000", -- Proxies requests via https or socks.
-- temperature = 0.1,
},
build = function()
vim.notify("Please update the remote plugins by running ':UpdateRemotePlugins', then restart Neovim.")
end,
cmd = {
"UpdateRemotePlugins",
},
event = "VeryLazy",
keys = {
{ "<leader>uce", "<cmd>CopilotChatExplain<cr>", desc = "CopilotChat - Explain code" },
{ "<leader>uct", "<cmd>CopilotChatTests<cr>", desc = "CopilotChat - Generate tests" },
{
"<leader>ucT",
"<cmd>CopilotChatVsplitToggle<cr>",
desc = "CopilotChat - Toggle Vsplit", -- Toggle vertical split
},
{
"<leader>ucv",
":CopilotChatVisual",
mode = "x",
desc = "CopilotChat - Open in vertical split",
},
{
"<leader>ucx",
":CopilotChatInPlace<cr>",
mode = "x",
desc = "CopilotChat - Run in-place code",
},
{
"<leader>ucf",
"<cmd>CopilotChatFixDiagnostic<cr>", -- Get a fix for the diagnostic message under the cursor.
desc = "CopilotChat - Fix diagnostic",
},
{
"<leader>ucr",
"<cmd>CopilotChatReset<cr>", -- Reset chat history and clear buffer.
desc = "CopilotChat - Reset chat history and clear buffer",
},
},
}, This is my config.
|
Beta Was this translation helpful? Give feedback.
Answered by
jellydn
Feb 22, 2024
Replies: 1 comment
-
Please refer to here UpdateRemotePlugins |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
niksingh710
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please refer to here UpdateRemotePlugins