From fe1808e51760c2fa71ca4176551161c73b2f2f73 Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Sun, 18 Feb 2024 03:23:49 +0800 Subject: [PATCH] feat: disable vim diagnostics on chat buffer for vsplit handler --- rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py b/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py index 70284b61..e959debb 100644 --- a/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py +++ b/rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py @@ -36,6 +36,9 @@ def vsplit(self): ) self.nvim.current.window.vars[var_key] = True + """ Disable vim diagnostics on the chat buffer """ + self.nvim.command(":lua vim.diagnostic.disable()") + def toggle_vsplit(self): """Toggle vsplit chat window.""" var_key = "copilot_chat"