Skip to content

Commit

Permalink
feat: disable vim diagnostics on chat buffer for vsplit handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Feb 17, 2024
1 parent 81c5060 commit fe1808e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rplugin/python3/CopilotChat/handlers/vsplit_chat_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fe1808e

Please sign in to comment.