From bc577b30c239e6e1f1eea0b7a9944241eaf4d831 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 15 Feb 2024 11:22:36 +0000 Subject: [PATCH 01/16] chore(doc): auto generate docs --- doc/CopilotChat.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt index e6a327ea..16fa272d 100644 --- a/doc/CopilotChat.txt +++ b/doc/CopilotChat.txt @@ -1,4 +1,4 @@ -*CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 February 14 +*CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 February 15 ============================================================================== Table of Contents *CopilotChat-table-of-contents* From 60718ed6e806fa86fd78cb3bf55a05f1a74b257e Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Thu, 15 Feb 2024 21:20:31 +0800 Subject: [PATCH 02/16] feat(integration): set filetype to 'copilot-chat' for support edgy.nvim --- rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py b/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py index 9cd76a82..6f306cdd 100644 --- a/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py +++ b/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py @@ -11,11 +11,12 @@ def __init__(self, nvim: MyNvim): self.buffer: MyBuffer = MyBuffer.new( self.nvim, { - "filetype": "markdown", + "filetype": "copilot-chat", }, ) def vsplit(self): + self.buffer.option("filetype", "copilot-chat") var_key = "copilot_chat" for window in self.nvim.windows: try: @@ -36,6 +37,7 @@ def vsplit(self): self.nvim.current.window.vars[var_key] = True def chat(self, prompt: str, filetype: str, code: str = ""): + self.buffer.option("filetype", "markdown") super().chat(prompt, filetype, code, self.nvim.current.window.handle) def reset_buffer(self): From 4a2c60dd7cfb759f99f33a9ffb095c39415de02f Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Thu, 15 Feb 2024 21:36:31 +0800 Subject: [PATCH 03/16] docs: add a tip for manage window position with edgy.nvim --- README.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a522b6d..01fb3730 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,29 @@ For further reference, you can view @jellydn's [configuration](https://github.co ## Tips +### integration with `edgy.nvim` + +Consider integrating this plugin with [`edgy.nvim`](https://github.com/folke/edgy.nvim). This will allow you to create a chat window on the right side of your screen, occupying 40% of the width, as illustrated below. + +```lua +{ + "folke/edgy.nvim", + event = "VeryLazy", + opts = { + -- Refer to my configuration here https://github.com/jellydn/lazy-nvim-ide/blob/main/lua/plugins/extras/edgy.lua + right = { + { + title = "CopilotChat.nvim", -- Title of the window + ft = "copilot-chat", -- This is custom file type from CopilotChat.nvim + size = { width = 0.4 }, -- Width of the window + }, + }, + }, +} +``` + +[![Layout](https://i.gyazo.com/550daf6cbb729027ca9bd703c21af53e.png)](https://gyazo.com/550daf6cbb729027ca9bd703c21af53e) + ### Debugging with `:messages` and `:CopilotChatDebugInfo` If you encounter any issues, you can run the command `:messages` to inspect the log. You can also run the command `:CopilotChatDebugInfo` to inspect the debug information. @@ -270,11 +293,11 @@ Follow the example below to create a simple input for CopilotChat. local my_prompts = { {prompt = "In Neovim.",desc = "Neovim",key = "n"}, {prompt = "Help with this",desc = "Help",key = "h"}, - {prompt = "Simplify and imporve readablilty",desc = "Simplify",key = "s"}, - {prompt = "Optimize the code to improve perfomance and readablilty.",desc = "Optimize",key = "o"}, + {prompt = "Simplify and improve readablilty",desc = "Simplify",key = "s"}, + {prompt = "Optimize the code to improve performance and readablilty.",desc = "Optimize",key = "o"}, {prompt = "Find possible errors and fix them for me",desc = "Fix",key = "f"}, {prompt = "Explain in detail",desc = "Explain",key = "e"}, - {prompt = "Write a shell scirpt",desc = "Shell",key = "S"}, + {prompt = "Write a shell script",desc = "Shell",key = "S"}, } -- you can change cc to your desired keybind prefix for _,v in pairs(my_prompts) do From fbe3f2c9ee0cc7e0f9bead4916595c740d72bb38 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 15 Feb 2024 13:37:53 +0000 Subject: [PATCH 04/16] chore(doc): auto generate docs --- doc/CopilotChat.txt | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt index 16fa272d..8c3384bd 100644 --- a/doc/CopilotChat.txt +++ b/doc/CopilotChat.txt @@ -211,6 +211,33 @@ IN-PLACE CHAT POPUP ~ TIPS *CopilotChat-copilot-chat-for-neovim-tips* +INTEGRATION WITH EDGY.NVIM ~ + +Consider integrating this plugin with `edgy.nvim` +. This will allow you to create a chat +window on the right side of your screen, occupying 40% of the width, as +illustrated below. + +>lua + { + "folke/edgy.nvim", + event = "VeryLazy", + opts = { + -- Refer to my configuration here https://github.com/jellydn/lazy-nvim-ide/blob/main/lua/plugins/extras/edgy.lua + right = { + { + title = "CopilotChat.nvim", -- Title of the window + ft = "copilot-chat", -- This is custom file type from CopilotChat.nvim + size = { width = 0.4 }, -- Width of the window + }, + }, + }, + } +< + + + + DEBUGGING WITH :MESSAGES AND :COPILOTCHATDEBUGINFO ~ If you encounter any issues, you can run the command `:messages` to inspect the @@ -304,11 +331,11 @@ ADD SAME KEYBINDS IN BOTH VISUAL AND NORMAL MODE ~ local my_prompts = { {prompt = "In Neovim.",desc = "Neovim",key = "n"}, {prompt = "Help with this",desc = "Help",key = "h"}, - {prompt = "Simplify and imporve readablilty",desc = "Simplify",key = "s"}, - {prompt = "Optimize the code to improve perfomance and readablilty.",desc = "Optimize",key = "o"}, + {prompt = "Simplify and improve readablilty",desc = "Simplify",key = "s"}, + {prompt = "Optimize the code to improve performance and readablilty.",desc = "Optimize",key = "o"}, {prompt = "Find possible errors and fix them for me",desc = "Fix",key = "f"}, {prompt = "Explain in detail",desc = "Explain",key = "e"}, - {prompt = "Write a shell scirpt",desc = "Shell",key = "S"}, + {prompt = "Write a shell script",desc = "Shell",key = "S"}, } -- you can change cc to your desired keybind prefix for _,v in pairs(my_prompts) do @@ -367,9 +394,10 @@ STARGAZERS OVER TIME ~ 5. *Generate tests*: https://i.gyazo.com/f285467d4b8d8f8fd36aa777305312ae.gif 6. *Fold Demo*: https://i.gyazo.com/766fb3b6ffeb697e650fc839882822a8.gif 7. *In-place Demo*: https://i.gyazo.com/4a5badaa109cd483c1fc23d296325cb0.gif -8. *Debug Info*: https://i.gyazo.com/bf00e700bcee1b77bcbf7b516b552521.gif -9. *@ecosse3*: -10. *Stargazers over time*: https://starchart.cc/CopilotC-Nvim/CopilotChat.nvim.svg +8. *Layout*: https://i.gyazo.com/550daf6cbb729027ca9bd703c21af53e.png +9. *Debug Info*: https://i.gyazo.com/bf00e700bcee1b77bcbf7b516b552521.gif +10. *@ecosse3*: +11. *Stargazers over time*: https://starchart.cc/CopilotC-Nvim/CopilotChat.nvim.svg Generated by panvimdoc From 0e5ecedda4d7a9cc6eeef1424889d8d9550bf4f3 Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Thu, 15 Feb 2024 22:12:25 +0800 Subject: [PATCH 05/16] feat: add diagnostic troubleshooting command --- lua/CopilotChat/init.lua | 17 +++++++++++++++++ lua/CopilotChat/utils.lua | 22 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/lua/CopilotChat/init.lua b/lua/CopilotChat/init.lua index 1542e0f9..693769a4 100644 --- a/lua/CopilotChat/init.lua +++ b/lua/CopilotChat/init.lua @@ -33,6 +33,23 @@ M.setup = function(options) end, { nargs = '*', range = true }) end + -- Troubleshoot and fix the diagnostic issue at the current cursor position. + utils.create_cmd('CopilotChatFixDiagnostic', function() + local diagnostic = utils.get_diagnostics() + local file_name = vim.fn.expand('%:t') + local line_number = vim.fn.line('.') + -- Copy all the lines from current buffer to unnamed register + vim.cmd('normal! ggVG"*y') + vim.cmd( + 'CopilotChat Please assist with the following diagnostic issue in file: "' + .. file_name + .. ':' + .. line_number + .. '". ' + .. diagnostic + ) + end, { nargs = '*', range = true }) + -- Show debug info utils.create_cmd('CopilotChatDebugInfo', function() -- Get the log file path diff --git a/lua/CopilotChat/utils.lua b/lua/CopilotChat/utils.lua index 3d83bdc3..98589e52 100644 --- a/lua/CopilotChat/utils.lua +++ b/lua/CopilotChat/utils.lua @@ -52,4 +52,26 @@ M.log_error = function(...) log.error(...) end +--- Get diagnostics for the current line +--- It uses the built-in LSP client in Neovim to get the diagnostics. +--- @return string +M.get_diagnostics = function() + local buffer_number = vim.api.nvim_get_current_buf() + local cursor = vim.api.nvim_win_get_cursor(0) + local line_diagnostics = vim.lsp.diagnostic.get_line_diagnostics(buffer_number, cursor[1] - 1) + + if #line_diagnostics == 0 then + return 'No diagnostics available' + end + + local diagnostics = {} + for _, diagnostic in ipairs(line_diagnostics) do + table.insert(diagnostics, diagnostic.message) + end + + local result = table.concat(diagnostics, '. ') + result = result:gsub('^%s*(.-)%s*$', '%1'):gsub('\n', ' ') + return result +end + return M From 8a2d8f4fce3a06404ce3327e992b0c6dd3eca55b Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Thu, 15 Feb 2024 22:16:36 +0800 Subject: [PATCH 06/16] docs(README): update keybindings for 2 new commands and fix typo --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01fb3730..b3e9a2ef 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,16 @@ return { mode = "x", desc = "CopilotChat - Run in-place code", }, + { + "ccf", + "CopilotChatFixDiagnostic", -- Get a fix for the diagnostic message under the cursor. + desc = "CopilotChat - Fix diagnostic", + }, + { + "ccr", + "CopilotChatReset", -- Reset chat history and clear buffer. + desc = "CopilotChat - Reset chat history and clear buffer", + } }, }, } @@ -183,7 +193,7 @@ For further reference, you can view @jellydn's [configuration](https://github.co ## Tips -### integration with `edgy.nvim` +### Integration with `edgy.nvim` Consider integrating this plugin with [`edgy.nvim`](https://github.com/folke/edgy.nvim). This will allow you to create a chat window on the right side of your screen, occupying 40% of the width, as illustrated below. From a80455d4ada6470eb398ed8a96aa6adc18c8d110 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 15 Feb 2024 14:17:00 +0000 Subject: [PATCH 07/16] chore(doc): auto generate docs --- doc/CopilotChat.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt index 8c3384bd..7c4188b7 100644 --- a/doc/CopilotChat.txt +++ b/doc/CopilotChat.txt @@ -75,6 +75,16 @@ LAZY.NVIM ~ mode = "x", desc = "CopilotChat - Run in-place code", }, + { + "ccf", + "CopilotChatFixDiagnostic", -- Get a fix for the diagnostic message under the cursor. + desc = "CopilotChat - Fix diagnostic", + }, + { + "ccr", + "CopilotChatReset", -- Reset chat history and clear buffer. + desc = "CopilotChat - Reset chat history and clear buffer", + } }, }, } From e42288308da236e9ff84fb8dda404eae9a5d9fe2 Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Thu, 15 Feb 2024 22:31:51 +0800 Subject: [PATCH 08/16] docs(README): add demo for CopilotChatFixDiagnostic command --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index b3e9a2ef..6bfef972 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,13 @@ For further reference, you can view @jellydn's [configuration](https://github.co [![Generate tests](https://i.gyazo.com/f285467d4b8d8f8fd36aa777305312ae.gif)](https://gyazo.com/f285467d4b8d8f8fd36aa777305312ae) +### Troubleshoot and Fix Diagnostic + +1. Place your cursor on the line with the diagnostic message. +2. Run the command `:CopilotChatFixDiagnostic`. + +[![Fix diagnostic](https://i.gyazo.com/4aff3fdbc5c3eee59cb68939546fa2be.gif)](https://gyazo.com/4aff3fdbc5c3eee59cb68939546fa2be) + ### Token count & Fold with visual mode 1. Select some code using visual mode. From 20ffb831b07ba6511de5aeda1c2da36550bf56b1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 15 Feb 2024 14:32:15 +0000 Subject: [PATCH 09/16] chore(doc): auto generate docs --- doc/CopilotChat.txt | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt index 7c4188b7..04b403ab 100644 --- a/doc/CopilotChat.txt +++ b/doc/CopilotChat.txt @@ -200,6 +200,14 @@ GENERATE TESTS ~ +TROUBLESHOOT AND FIX DIAGNOSTIC ~ + +1. Place your cursor on the line with the diagnostic message. +2. Run the command `:CopilotChatFixDiagnostic`. + + + + TOKEN COUNT & FOLD WITH VISUAL MODE ~ 1. Select some code using visual mode. @@ -402,12 +410,13 @@ STARGAZERS OVER TIME ~ 3. *Chat Demo*: https://i.gyazo.com/10fbd1543380d15551791c1a6dcbcd46.gif 4. *Explain Code Demo*: https://i.gyazo.com/e5031f402536a1a9d6c82b2c38d469e3.gif 5. *Generate tests*: https://i.gyazo.com/f285467d4b8d8f8fd36aa777305312ae.gif -6. *Fold Demo*: https://i.gyazo.com/766fb3b6ffeb697e650fc839882822a8.gif -7. *In-place Demo*: https://i.gyazo.com/4a5badaa109cd483c1fc23d296325cb0.gif -8. *Layout*: https://i.gyazo.com/550daf6cbb729027ca9bd703c21af53e.png -9. *Debug Info*: https://i.gyazo.com/bf00e700bcee1b77bcbf7b516b552521.gif -10. *@ecosse3*: -11. *Stargazers over time*: https://starchart.cc/CopilotC-Nvim/CopilotChat.nvim.svg +6. *Fix diagnostic*: https://i.gyazo.com/4aff3fdbc5c3eee59cb68939546fa2be.gif +7. *Fold Demo*: https://i.gyazo.com/766fb3b6ffeb697e650fc839882822a8.gif +8. *In-place Demo*: https://i.gyazo.com/4a5badaa109cd483c1fc23d296325cb0.gif +9. *Layout*: https://i.gyazo.com/550daf6cbb729027ca9bd703c21af53e.png +10. *Debug Info*: https://i.gyazo.com/bf00e700bcee1b77bcbf7b516b552521.gif +11. *@ecosse3*: +12. *Stargazers over time*: https://starchart.cc/CopilotC-Nvim/CopilotChat.nvim.svg Generated by panvimdoc From 48209d6b98cb50c9dae59da70ebda351282cf8f7 Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Fri, 16 Feb 2024 16:23:09 +0800 Subject: [PATCH 10/16] feat: add toggle command for vertical split in CopilotChat --- README.md | 7 +++++++ rplugin/python3/CopilotChat/copilot_plugin.py | 6 ++++++ .../CopilotChat/handlers/vsplit_chat_handler.py | 13 +++++++++++++ 3 files changed, 26 insertions(+) diff --git a/README.md b/README.md index 6bfef972..7292cbcd 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,11 @@ return { keys = { { "cce", "CopilotChatExplain", desc = "CopilotChat - Explain code" }, { "cct", "CopilotChatTests", desc = "CopilotChat - Generate tests" }, + { + "ccT", + "CopilotChatVsplitToggle", + desc = "CopilotChat - Toggle Vsplit", -- Toggle vertical split + }, { "ccv", ":CopilotChatVisual", @@ -79,7 +84,9 @@ For example: " python3 plugins call remote#host#RegisterPlugin('python3', '/Users/huynhdung/.local/share/nvim/lazy/CopilotChat.nvim/rplugin/python3/CopilotChat', [ \ {'sync': v:false, 'name': 'CopilotChat', 'type': 'command', 'opts': {'nargs': '1'}}, + \ {'sync': v:false, 'name': 'CopilotChatReset', 'type': 'command', 'opts': {}}, \ {'sync': v:false, 'name': 'CopilotChatVisual', 'type': 'command', 'opts': {'nargs': '1', 'range': ''}}, + \ {'sync': v:false, 'name': 'CopilotChatVsplitToggle', 'type': 'command', 'opts': {}}, \ {'sync': v:false, 'name': 'CopilotChatInPlace', 'type': 'command', 'opts': {'nargs': '*', 'range': ''}}, \ {'sync': v:false, 'name': 'CopilotChatAutocmd', 'type': 'command', 'opts': {'nargs': '*'}}, \ {'sync': v:false, 'name': 'CopilotChatMapping', 'type': 'command', 'opts': {'nargs': '*'}}, diff --git a/rplugin/python3/CopilotChat/copilot_plugin.py b/rplugin/python3/CopilotChat/copilot_plugin.py index 5e2708fc..c3b48cce 100644 --- a/rplugin/python3/CopilotChat/copilot_plugin.py +++ b/rplugin/python3/CopilotChat/copilot_plugin.py @@ -18,6 +18,12 @@ def init_vsplit_chat_handler(self): if self.vsplit_chat_handler is None: self.vsplit_chat_handler = VSplitChatHandler(self.nvim) + @pynvim.command("CopilotChatVsplitToggle") + def copilot_chat_toggle_cmd(self): + self.init_vsplit_chat_handler() + if self.vsplit_chat_handler: + self.vsplit_chat_handler.toggle_vsplit() + @pynvim.command("CopilotChat", nargs="1") def copilot_agent_cmd(self, args: list[str]): self.init_vsplit_chat_handler() diff --git a/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py b/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py index 6f306cdd..70284b61 100644 --- a/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py +++ b/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py @@ -36,6 +36,19 @@ def vsplit(self): ) self.nvim.current.window.vars[var_key] = True + def toggle_vsplit(self): + """Toggle vsplit chat window.""" + var_key = "copilot_chat" + for window in self.nvim.windows: + try: + if window.vars[var_key]: + self.nvim.command("close") + return + except Exception: + pass + + self.vsplit() + def chat(self, prompt: str, filetype: str, code: str = ""): self.buffer.option("filetype", "markdown") super().chat(prompt, filetype, code, self.nvim.current.window.handle) From 00d448c4fb337c2993ca826ff881dfd9d9ce9c74 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 16 Feb 2024 08:23:33 +0000 Subject: [PATCH 11/16] chore(doc): auto generate docs --- doc/CopilotChat.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt index 04b403ab..0b78f9dc 100644 --- a/doc/CopilotChat.txt +++ b/doc/CopilotChat.txt @@ -1,4 +1,4 @@ -*CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 February 15 +*CopilotChat.txt* For NVIM v0.8.0 Last change: 2024 February 16 ============================================================================== Table of Contents *CopilotChat-table-of-contents* @@ -63,6 +63,11 @@ LAZY.NVIM ~ keys = { { "cce", "CopilotChatExplain", desc = "CopilotChat - Explain code" }, { "cct", "CopilotChatTests", desc = "CopilotChat - Generate tests" }, + { + "ccT", + "CopilotChatVsplitToggle", + desc = "CopilotChat - Toggle Vsplit", -- Toggle vertical split + }, { "ccv", ":CopilotChatVisual", @@ -98,7 +103,9 @@ For example: " python3 plugins call remote#host#RegisterPlugin('python3', '/Users/huynhdung/.local/share/nvim/lazy/CopilotChat.nvim/rplugin/python3/CopilotChat', [ \ {'sync': v:false, 'name': 'CopilotChat', 'type': 'command', 'opts': {'nargs': '1'}}, + \ {'sync': v:false, 'name': 'CopilotChatReset', 'type': 'command', 'opts': {}}, \ {'sync': v:false, 'name': 'CopilotChatVisual', 'type': 'command', 'opts': {'nargs': '1', 'range': ''}}, + \ {'sync': v:false, 'name': 'CopilotChatVsplitToggle', 'type': 'command', 'opts': {}}, \ {'sync': v:false, 'name': 'CopilotChatInPlace', 'type': 'command', 'opts': {'nargs': '*', 'range': ''}}, \ {'sync': v:false, 'name': 'CopilotChatAutocmd', 'type': 'command', 'opts': {'nargs': '*'}}, \ {'sync': v:false, 'name': 'CopilotChatMapping', 'type': 'command', 'opts': {'nargs': '*'}}, From 9a1569a35f7b1e90df3fde05e427999db835991c Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Fri, 16 Feb 2024 16:30:07 +0800 Subject: [PATCH 12/16] docs: add vsplit toggle demo --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7292cbcd..c24baca1 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,10 @@ For further reference, you can view @jellydn's [configuration](https://github.co [![In-place Demo](https://i.gyazo.com/4a5badaa109cd483c1fc23d296325cb0.gif)](https://gyazo.com/4a5badaa109cd483c1fc23d296325cb0) +### Toggle Vertical Split with `:CopilotChatVsplitToggle` + +[![Toggle](https://i.gyazo.com/db5af9e5d88cd2fd09f58968914fa521.gif)](https://gyazo.com/db5af9e5d88cd2fd09f58968914fa521) + ## Tips ### Integration with `edgy.nvim` From 72bec6a9e5ba8d3147ef965dc7d3c89ad6900790 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 16 Feb 2024 08:30:32 +0000 Subject: [PATCH 13/16] chore(doc): auto generate docs --- doc/CopilotChat.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt index 0b78f9dc..3c778d72 100644 --- a/doc/CopilotChat.txt +++ b/doc/CopilotChat.txt @@ -233,6 +233,11 @@ IN-PLACE CHAT POPUP ~ +TOGGLE VERTICAL SPLIT WITH :COPILOTCHATVSPLITTOGGLE ~ + + + + TIPS *CopilotChat-copilot-chat-for-neovim-tips* @@ -420,10 +425,11 @@ STARGAZERS OVER TIME ~ 6. *Fix diagnostic*: https://i.gyazo.com/4aff3fdbc5c3eee59cb68939546fa2be.gif 7. *Fold Demo*: https://i.gyazo.com/766fb3b6ffeb697e650fc839882822a8.gif 8. *In-place Demo*: https://i.gyazo.com/4a5badaa109cd483c1fc23d296325cb0.gif -9. *Layout*: https://i.gyazo.com/550daf6cbb729027ca9bd703c21af53e.png -10. *Debug Info*: https://i.gyazo.com/bf00e700bcee1b77bcbf7b516b552521.gif -11. *@ecosse3*: -12. *Stargazers over time*: https://starchart.cc/CopilotC-Nvim/CopilotChat.nvim.svg +9. *Toggle*: https://i.gyazo.com/db5af9e5d88cd2fd09f58968914fa521.gif +10. *Layout*: https://i.gyazo.com/550daf6cbb729027ca9bd703c21af53e.png +11. *Debug Info*: https://i.gyazo.com/bf00e700bcee1b77bcbf7b516b552521.gif +12. *@ecosse3*: +13. *Stargazers over time*: https://starchart.cc/CopilotC-Nvim/CopilotChat.nvim.svg Generated by panvimdoc From 6c7626709c4decec38f236d0ed94f69c82cd0aa7 Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Fri, 16 Feb 2024 16:49:05 +0800 Subject: [PATCH 14/16] docs: add instruction to enable python3 provider in Neovim --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c24baca1..48fd1ddb 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Ensure you have the following installed: - Python 3.10 or later +- Enable `python3 provider` in Neovim. Testing by run `:echo has('python3')` in Neovim. If it returns `1`, then `python3 provider` is enabled. ## Authentication From 2d2f860f48786c7ac1fa376e047c6d3e39a33504 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 16 Feb 2024 08:49:27 +0000 Subject: [PATCH 15/16] chore(doc): auto generate docs --- doc/CopilotChat.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt index 3c778d72..2146cc10 100644 --- a/doc/CopilotChat.txt +++ b/doc/CopilotChat.txt @@ -29,6 +29,7 @@ PREREQUISITES *CopilotChat-copilot-chat-for-neovim-prerequisites* Ensure you have the following installed: - Python 3.10 or later +- Enable `python3 provider` in Neovim. Testing by run `:echo has('python3')` in Neovim. If it returns `1`, then `python3 provider` is enabled. AUTHENTICATION *CopilotChat-copilot-chat-for-neovim-authentication* From 25ea586d2f2a09d4bde3492bf5da3593a5a0ed02 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:49:41 +0800 Subject: [PATCH 16/16] chore(main): release 1.4.0 (#49) --- CHANGELOG.md | 9 +++++++++ version.txt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7aa3208b..e1c4200e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.4.0](https://github.com/CopilotC-Nvim/CopilotChat.nvim/compare/v1.3.0...v1.4.0) (2024-02-16) + + +### Features + +* add diagnostic troubleshooting command ([0e5eced](https://github.com/CopilotC-Nvim/CopilotChat.nvim/commit/0e5ecedda4d7a9cc6eeef1424889d8d9550bf4f3)) +* add toggle command for vertical split in CopilotChat ([48209d6](https://github.com/CopilotC-Nvim/CopilotChat.nvim/commit/48209d6b98cb50c9dae59da70ebda351282cf8f7)) +* **integration:** set filetype to 'copilot-chat' for support edgy.nvim ([60718ed](https://github.com/CopilotC-Nvim/CopilotChat.nvim/commit/60718ed6e806fa86fd78cb3bf55a05f1a74b257e)) + ## [1.3.0](https://github.com/CopilotC-Nvim/CopilotChat.nvim/compare/v1.2.0...v1.3.0) (2024-02-14) diff --git a/version.txt b/version.txt index f0bb29e7..88c5fb89 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.3.0 +1.4.0