We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbf250 commit 07988b9Copy full SHA for 07988b9
1 file changed
lua/CopilotChat/init.lua
@@ -23,6 +23,15 @@ M.setup = function(options)
23
vim.cmd('CopilotChat ' .. value)
24
end, { nargs = '*', range = true })
25
end
26
+
27
+ -- Toggle between newbuffer and split
28
+ utils.create_cmd('CopilotChatToggleLayout', function()
29
+ if vim.g.copilot_chat_view_option == 'newbuffer' then
30
+ vim.g.copilot_chat_view_option = 'split'
31
+ else
32
+ vim.g.copilot_chat_view_option = 'newbuffer'
33
+ end
34
+ end, { nargs = '*', range = true })
35
36
37
return M
0 commit comments